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)
确定频道是否支持许多建议的作。
参数:
返回: