Channel クラス
- java.
lang. Object - com.
microsoft. bot. dialogs. choices. Channel
- com.
public final class Channel
チャネル固有の機能を決定するためのメソッド。
メソッドの概要
| 修飾子と型 | メソッドと説明 |
|---|---|
| static java.lang.String |
getChannelId(TurnContext turnContext)
ターン コンテキストの現在のアクティビティからチャネル ID を取得します。 |
| static boolean |
hasMessageFeed(String channelId)
チャネルにメッセージ フィードがあるかどうかを判断します。 |
| static int |
maxActionTitleLength(String channelId)
アクション タイトルに使用できる最大長。 |
| static boolean |
supportsCardActions(String channelId)
チャネルでサポートされているカード アクションの数を決定します。 |
| static boolean |
supportsCardActions(String channelId, int buttonCnt)
チャネルでサポートされているカード アクションの数を決定します。 |
| static boolean |
supportsSuggestedActions(String channelId)
複数の推奨アクションがチャネルでサポートされているかどうかを判断します。 |
| static boolean |
supportsSuggestedActions(String channelId, int buttonCnt)
複数の推奨アクションがチャネルでサポートされているかどうかを判断します。 |
メソッドの継承元: java.lang.Object
メソッドの詳細
getChannelId
public static String getChannelId(TurnContext turnContext)
ターン コンテキストの現在のアクティビティからチャネル ID を取得します。
パラメーター:
戻り値:
hasMessageFeed
public static boolean hasMessageFeed(String channelId)
チャネルにメッセージ フィードがあるかどうかを判断します。
パラメーター:
戻り値:
maxActionTitleLength
public static int maxActionTitleLength(String channelId)
アクション タイトルに使用できる最大長。
パラメーター:
戻り値:
supportsCardActions
public static boolean supportsCardActions(String channelId)
チャネルでサポートされているカード アクションの数を決定します。
パラメーター:
戻り値:
supportsCardActions
public static boolean supportsCardActions(String channelId, int buttonCnt)
チャネルでサポートされているカード アクションの数を決定します。
パラメーター:
戻り値:
supportsSuggestedActions
public static boolean supportsSuggestedActions(String channelId)
複数の推奨アクションがチャネルでサポートされているかどうかを判断します。
パラメーター:
戻り値:
supportsSuggestedActions
public static boolean supportsSuggestedActions(String channelId, int buttonCnt)
複数の推奨アクションがチャネルでサポートされているかどうかを判断します。
パラメーター:
戻り値: