Channel Class
- java.
lang. Object - com.
microsoft. bot. dialogs. choices. Channel
- com.
public final class Channel
Methods for determining channel specific functionality.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static java.lang.String |
getChannelId(TurnContext turnContext)
Get the Channel Id from the current Activity on the Turn Context. |
| static boolean |
hasMessageFeed(String channelId)
Determine if a Channel has a Message Feed. |
| static int |
maxActionTitleLength(String channelId)
Maximum length allowed for Action Titles. |
| static boolean |
supportsCardActions(String channelId)
Determine if a number of Card Actions are supported by a Channel. |
| static boolean |
supportsCardActions(String channelId, int buttonCnt)
Determine if a number of Card Actions are supported by a Channel. |
| static boolean |
supportsSuggestedActions(String channelId)
Determine if a number of Suggested Actions are supported by a Channel. |
| static boolean |
supportsSuggestedActions(String channelId, int buttonCnt)
Determine if a number of Suggested Actions are supported by a Channel. |
Methods inherited from java.lang.Object
Method Details
getChannelId
public static String getChannelId(TurnContext turnContext)
Get the Channel Id from the current Activity on the Turn Context.
Parameters:
Returns:
hasMessageFeed
public static boolean hasMessageFeed(String channelId)
Determine if a Channel has a Message Feed.
Parameters:
Returns:
maxActionTitleLength
public static int maxActionTitleLength(String channelId)
Maximum length allowed for Action Titles.
Parameters:
Returns:
supportsCardActions
public static boolean supportsCardActions(String channelId)
Determine if a number of Card Actions are supported by a Channel.
Parameters:
Returns:
supportsCardActions
public static boolean supportsCardActions(String channelId, int buttonCnt)
Determine if a number of Card Actions are supported by a Channel.
Parameters:
Returns:
supportsSuggestedActions
public static boolean supportsSuggestedActions(String channelId)
Determine if a number of Suggested Actions are supported by a Channel.
Parameters:
Returns:
supportsSuggestedActions
public static boolean supportsSuggestedActions(String channelId, int buttonCnt)
Determine if a number of Suggested Actions are supported by a Channel.
Parameters:
Returns: