Channel 類別
- java.
lang. Object - com.
microsoft. bot. dialogs. choices. Channel
- com.
public final class Channel
判斷通道特定功能的方法。
方法摘要
| 修飾詞與類型 | 方法與描述 |
|---|---|
| static java.lang.String |
getChannelId(TurnContext turnContext)
從回合內容上的目前活動取得通道標識碼。 |
| 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)
從回合內容上的目前活動取得通道標識碼。
參數:
傳回:
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)
判斷通道是否支持數個建議動作。
參數:
傳回: