Activity Class
- java.
lang. Object - com.
microsoft. bot. schema. Activity
- com.
public class Activity
The Activity class contains all properties that individual, more specific activities could contain. It is a superset type.
Constructor Summary
| Modifier | Constructor | Description |
|---|---|---|
| protected | Activity() |
Default constructor. |
| Activity(String withType) |
Construct an Activity of the specified type. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| TypeT |
<TypeT>getChannelData(Class<TypeT> classType)
Get channel |
|
Result |
<TypeT>tryGetChannelData(Class<TypeT> clsType)
Get channel |
| final Activity |
applyConversationReference(ConversationReference reference)
Updates this activity with the outgoing delivery information from an existing ConversationReference. |
| final Activity |
applyConversationReference(ConversationReference reference, boolean isIncoming)
Updates this activity with the delivery information from an existing ConversationReference. |
| static Activity |
clone(Activity activity)
Clone a activity. |
| static Activity |
createContactRelationUpdateActivity()
Create a CONTACT_RELATION_UPDATE type Activity. |
| static Activity |
createConversationUpdateActivity()
Create a CONVERSATION_UPDATE type Activity. |
| static Activity |
createEndOfConversationActivity()
Creates a END_OF_CONVERSATION type of Activity. |
| static Activity |
createEventActivity()
Creates a EVENT type of Activity. |
| static Activity |
createHandoffActivity()
Creates a HANDOFF type Activity. |
| static Activity |
createInvokeActivity()
Creates a INVOKE type of Activity. |
| static Activity |
createMessageActivity()
Create a MESSAGE type Activity. |
| Activity |
createReply()
Creates a new message activity as a response to this activity. |
| Activity |
createReply(String withText)
Creates a new message activity as a response to this activity. |
| Activity |
createReply(String withText, String withLocale)
Creates a new message activity as a response to this activity. |
| Activity |
createTrace(String withName)
Creates an instance of the Activity class as type TRACE. |
| Activity |
createTrace(String withName, Object withValue, String withValueType, String withLabel)
Creates an instance of the Activity class as type TRACE. |
| static Activity |
createTraceActivity(String withName)
Create a TRACE type Activity. |
| static Activity |
createTraceActivity(String withName, String withValueType, Object withValue, String withLabel)
Create a TRACE type Activity. |
| static Activity |
createTypingActivity()
Creates a TYPING type Activity. |
| java.lang.String |
getAction()
Indicates whether the recipient of a contact |
|
Attachment |
getAttachmentLayout()
The layout hint for multiple attachments. |
| java.util.List<Attachment> |
getAttachments()
Gets the attachments to the Activity. |
| java.lang.String |
getCallerId()
Gets a string containing an IRI identifying the caller of a bot. |
| java.lang.Object |
getChannelData()
Gets channel-specific content. |
| java.lang.String |
getChannelId()
Gets the ID that uniquely identifies the channel. |
|
End |
getCode()
Gets the a code for end |
|
Conversation |
getConversation()
Identifies the conversation to which the activity belongs. |
|
Conversation |
getConversationReference()
Creates a ConversationReference based on this activity. |
| java.lang.String |
getDeliveryMode()
A delivery hint to signal to the recipient alternate delivery paths for the activity. |
| java.util.List<Entity> |
getEntities()
Returns payload version of the Entities in an Activity. |
| java.time.LocalDateTime |
getExpiration()
Gets the time at which the activity should be considered to be expired and should not be presented to the recipient. |
|
Channel |
getFrom()
Identifies the sender of the message. |
| boolean |
getHistoryDisclosed()
Gets whether the prior history of the channel is disclosed. |
| java.lang.String |
getId()
Returns the ID that uniquely identifies the activity on the channel. |
| java.lang.String |
getImportance()
Gets the importance of the activity. |
|
Input |
getInputHint()
Indicates whether your bot is accepting, expecting, or ignoring user input after the message is delivered to the client. |
| java.lang.String |
getLabel()
Gets the descriptive label for the activity. |
| java.util.List<java.lang.String> |
getListenFor()
Gets the list of phrases and references that speech and language priming systems should listen for. |
| java.time.OffsetDateTime |
getLocalTimestamp()
Gets the local date and time of the message, expressed in ISO-8601 format. |
| java.lang.String |
getLocalTimezone()
Gets the name of the local timezone of the message, expressed in IANA Time Zone database format. |
| java.lang.String |
getLocale()
A locale name for the contents of the text field. |
|
java.util.List<Channel |
getMembersAdded()
Gets the collection of members added to the conversation. |
|
java.util.List<Channel |
getMembersRemoved()
Gets the collection of members removed from the conversation. |
| java.util.List<Mention> |
getMentions()
Resolves the mentions from the entities of this activity. |
| java.lang.String |
getName()
Gets the name of the operation associated with an invoke or event activity. |
| java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> |
getProperties()
Holds the overflow properties that aren't first class properties in the object. |
|
java.util.List<Message |
getReactionsAdded()
Gets the collection of reactions added to the conversation. |
|
java.util.List<Message |
getReactionsRemoved()
Gets the collection of reactions removed from the conversation. |
|
Channel |
getRecipient()
Identifies the recipient of the message. |
|
Conversation |
getRelatesTo()
A reference to another conversation or activity. |
|
Conversation |
getReplyConversationReference(ResourceResponse reply)
Create a Conversation |
| java.lang.String |
getReplyToId()
Gets the ID of the message to which this message is a reply. |
| java.lang.String |
getServiceUrl()
Sets the URL that specifies the channel's service endpoint. |
| java.lang.String |
getSpeak()
The text to speak. |
|
Suggested |
getSuggestedActions()
Gets the suggested actions for the activity. |
| java.lang.String |
getSummary()
Gets the text to display if the channel cannot render cards. |
| java.lang.String |
getText()
Gets the text content of the message. |
|
Text |
getTextFormat()
Format of text fields Default:markdown. |
|
java.util.List<Text |
getTextHighlights()
Gets the collection of text fragments to highlight when the activity contains a Reply |
| java.time.OffsetDateTime |
getTimestamp()
Gets the date and time that the message was sent, in UTC, expressed in ISO-8601 format. |
| java.lang.String |
getTopicName()
Gets the updated topic name of the conversation. |
| java.lang.String |
getType()
Gets the ActivityTypes of the activity. |
| java.lang.Object |
getValue()
Gets the value that is associated with the activity. |
| java.lang.String |
getValueType()
Gets the type of the activity's value object. |
| boolean |
hasContent()
Checks if this (message) activity has content. |
| protected boolean |
isActivity(String activityType)
True if the Activity is of the specified activity type. |
| java.lang.Boolean |
isFromStreamingConnection()
Determines if the Activity was sent via an Http/Https connection or Streaming This can be determined by looking at the Service |
| boolean |
isTeamsActivity()
Check if this actvity is from microsoft teams. |
| boolean |
isType(String compareTo)
Convenience method to return if the Activity is of the specified type. |
| java.lang.String |
removeMentionText(String withId)
Remove any mention text for given id from the Activity. |
| static java.lang.String |
removeMentionTextImmutable(Activity activity, String id)
Removes the mention from the Activity. |
| java.lang.String |
removeRecipientMention()
Remove recipient mention text from Text property. |
| static java.lang.String |
removeRecipientMentionImmutable(Activity activity)
Removes recipient mention without modifying the Activity. |
| void |
setAction(String withAction)
Indicates whether the recipient of a contact |
| void |
setAttachment(Attachment withAttachment)
Sets a single attachment on the Activity. |
| void |
setAttachmentLayout(AttachmentLayoutTypes withAttachmentLayout)
Sets the layout hint for multiple attachments. |
| void |
setAttachments(List<Attachment> withAttachments)
Sets the attachments to the Activity. |
| void |
setCallerId(String withCallerId)
Sets the IRI identifying the caller of a bot. |
| void |
setChannelData(Object withChannelData)
Sets channel-specific content. |
| void |
setChannelId(String withChannelId)
Sets the ID that uniquely identifies the channel. |
| void |
setCode(EndOfConversationCodes withCode)
Sets the a code for end |
| void |
setConversation(ConversationAccount withConversation)
Identifies the conversation to which the activity belongs. |
| void |
setDeliveryMode(String withDeliveryMode)
A delivery hint to signal to the recipient alternate delivery paths for the activity. |
| void |
setEntities(List<Entity> withEntities)
Sets payload version of the Entities in an Activity. |
| void |
setExpiration(LocalDateTime withExpiration)
Sets the time at which the activity should be considered to be expired and should not be presented to the recipient. |
| void |
setFrom(ChannelAccount withFrom)
Identifies the sender of the message. |
| void |
setHistoryDisclosed(boolean withHistoryDisclosed)
Sets whether the prior history of the channel is disclosed. |
| void |
setId(String withId)
Sets the ID that uniquely identifies the activity on the channel. |
| void |
setImportance(String withImportance)
Sets the importance of the activity. |
| void |
setInputHint(InputHints withInputHint)
Indicates whether your bot is accepting, expecting, or ignoring user input after the message is delivered to the client. |
| void |
setLabel(String withLabel)
Sets the descriptive label for the activity. |
| void |
setListenFor(List<String> withListenFor)
Sets the list of phrases and references that speech and language priming systems should listen for. |
| void |
setLocalTimeZone(String withLocalTimezone)
Sets the name of the local timezone of the message, expressed in IANA Time Zone database format. |
| void |
setLocalTimestamp(OffsetDateTime withLocalTimestamp)
Contains the local date and time of the message, expressed in ISO-8601 format. |
| void |
setLocale(String withLocale)
A locale name for the contents of the text field. |
| void |
setMembersAdded(List<ChannelAccount> withMembersAdded)
Sets the collection of members added to the conversation. |
| void |
setMembersRemoved(List<ChannelAccount> withMembersRemoved)
Sets the collection of members removed from the conversation. |
| void |
setMentions(List<Mention> withMentions)
Sets payload version of the Mentions in an Activity. |
| void |
setName(String withName)
Sets the name of the operation associated with an invoke or event activity. |
| void |
setProperties(String key, JsonNode withValue)
Holds the overflow properties that aren't first class properties in the object. |
| void |
setReactionsAdded(List<MessageReaction> withReactionsAdded)
Sets the collection of reactions added to the conversation. |
| void |
setReactionsRemoved(List<MessageReaction> withReactionsRemoved)
Sets the collection of reactions removed from the conversation. |
| void |
setRecipient(ChannelAccount withRecipient)
Identifies the recipient of the message. |
| void |
setRelatesTo(ConversationReference withRelatesTo)
A reference to another conversation or activity. |
| void |
setReplyToId(String withReplyToId)
Sets the ID of the message to which this message is a reply. |
| void |
setServiceUrl(String withServiceUrl)
Sets the URL that specifies the channel's service endpoint. |
| void |
setSpeak(String withSpeak)
Sets the text to speak. |
| void |
setSuggestedActions(SuggestedActions withSuggestedActions)
The suggested actions for the activity. |
| void |
setSummary(String withSummary)
Sets the text to display if the channel cannot render cards. |
| void |
setText(String withText)
Sets the text content of the message. |
| void |
setTextFormat(TextFormatTypes withTextFormat)
Format of text fields. |
| void |
setTextHighlights(List<TextHighlight> withTextHighlights)
Sets the collection of text fragments to highlight when the activity contains a Reply |
| void |
setTimestamp(OffsetDateTime withTimestamp)
Sets the date and time that the message was sent, in UTC, expressed in ISO-8601 format. |
| void |
setTopicName(String withTopicName)
Sets the updated topic name of the conversation. |
| void |
setType(String withType)
Sets the ActivityTypes of the activity. |
| void |
setValue(Object withValue)
Sets the value that is associated with the activity. |
| void |
setValueType(String withValueType)
Sets the type of the activity's value object. |
|
Teams |
teamsGetChannelData()
Gets the Teams |
| java.lang.String |
teamsGetChannelId()
Get unique identifier representing a channel. |
|
Teams |
teamsGetMeetingInfo()
Gets the Teams |
| java.lang.String |
teamsGetTeamId()
Get unique identifier representing a team. |
|
Team |
teamsGetTeamInfo()
Get Teams Team |
| void |
teamsNotifyUser()
Sets the notification value in the Teams |
| void |
teamsNotifyUser(boolean alertInMeeting, String externalResourceUrl)
Sets the notification of a meeting in the Teams |
Methods inherited from java.lang.Object
Constructor Details
Activity
protected Activity()
Default constructor. Normally this wouldn't be used as the ActivityType is normally required.
Activity
public Activity(String withType)
Construct an Activity of the specified type.
Parameters:
Method Details
<TypeT>getChannelData
public TypeT
Get channelData as typed structure.
Parameters:
Returns:
Throws:
<TypeT>tryGetChannelData
public ResultPair
Get channelData as typed structure.
Parameters:
Returns:
applyConversationReference
public final Activity applyConversationReference(ConversationReference reference)
Updates this activity with the outgoing delivery information from an existing ConversationReference.
Parameters:
Returns:
applyConversationReference
public final Activity applyConversationReference(ConversationReference reference, boolean isIncoming)
Updates this activity with the delivery information from an existing ConversationReference. Call #getConversationReference on an incoming activity to get a conversation reference that you can then use to update an outgoing activity with the correct delivery information.
Parameters:
Returns:
clone
public static Activity clone(Activity activity)
Clone a activity.
Parameters:
Returns:
createContactRelationUpdateActivity
public static Activity createContactRelationUpdateActivity()
Create a CONTACT_RELATION_UPDATE type Activity.
Returns:
createConversationUpdateActivity
public static Activity createConversationUpdateActivity()
Create a CONVERSATION_UPDATE type Activity.
Returns:
createEndOfConversationActivity
public static Activity createEndOfConversationActivity()
Creates a END_OF_CONVERSATION type of Activity.
Returns:
createEventActivity
public static Activity createEventActivity()
Creates a EVENT type of Activity.
Returns:
createHandoffActivity
public static Activity createHandoffActivity()
Creates a HANDOFF type Activity.
Returns:
createInvokeActivity
public static Activity createInvokeActivity()
Creates a INVOKE type of Activity.
Returns:
createMessageActivity
public static Activity createMessageActivity()
Create a MESSAGE type Activity.
Returns:
createReply
public Activity createReply()
Creates a new message activity as a response to this activity.
Returns:
createReply
public Activity createReply(String withText)
Creates a new message activity as a response to this activity. This overload uses this Activity's Locale.
Parameters:
Returns:
createReply
public Activity createReply(String withText, String withLocale)
Creates a new message activity as a response to this activity.
Parameters:
Returns:
createTrace
public Activity createTrace(String withName)
Creates an instance of the Activity class as type TRACE.
Parameters:
Returns:
createTrace
public Activity createTrace(String withName, Object withValue, String withValueType, String withLabel)
Creates an instance of the Activity class as type TRACE.
Parameters:
Returns:
createTraceActivity
public static Activity createTraceActivity(String withName)
Create a TRACE type Activity.
Parameters:
Returns:
createTraceActivity
public static Activity createTraceActivity(String withName, String withValueType, Object withValue, String withLabel)
Create a TRACE type Activity.
Parameters:
Returns:
createTypingActivity
public static Activity createTypingActivity()
Creates a TYPING type Activity.
Returns:
getAction
public String getAction()
Indicates whether the recipient of a contactRelationUpdate was added or removed from the sender's contact list.
Returns:
getAttachmentLayout
public AttachmentLayoutTypes getAttachmentLayout()
The layout hint for multiple attachments.
Returns:
getAttachments
getCallerId
public String getCallerId()
Gets a string containing an IRI identifying the caller of a bot. This field is not intended to be transmitted over the wire, but is instead populated by bots and clients based on cryptographically verifiable data that asserts the identity of the callers (e.g. tokens).
Returns:
getChannelData
public Object getChannelData()
Gets channel-specific content.
Returns:
getChannelId
public String getChannelId()
Gets the ID that uniquely identifies the channel. Set by the channel.
Returns:
getCode
public EndOfConversationCodes getCode()
Gets the a code for endOfConversation activities that indicates why the conversation ended.
Returns:
getConversation
public ConversationAccount getConversation()
Identifies the conversation to which the activity belongs.
Returns:
getConversationReference
public ConversationReference getConversationReference()
Creates a ConversationReference based on this activity.
Returns:
getDeliveryMode
public String getDeliveryMode()
A delivery hint to signal to the recipient alternate delivery paths for the activity.
The default delivery mode is \"default\". See DeliveryModes.
Returns:
getEntities
public List
Returns payload version of the Entities in an Activity. Entities can vary in the number of fields. The Entity class holds the additional fields in getProperties(). To convert to other entity types, use <T>getAs(Class<T> classType).
Returns:
getExpiration
public LocalDateTime getExpiration()
Gets the time at which the activity should be considered to be expired and should not be presented to the recipient.
Returns:
getFrom
public ChannelAccount getFrom()
Identifies the sender of the message.
Returns:
getHistoryDisclosed
public boolean getHistoryDisclosed()
Gets whether the prior history of the channel is disclosed.
Returns:
getId
public String getId()
Returns the ID that uniquely identifies the activity on the channel.
Returns:
getImportance
public String getImportance()
Gets the importance of the activity.
Returns:
getInputHint
public InputHints getInputHint()
Indicates whether your bot is accepting, expecting, or ignoring user input after the message is delivered to the client.
Returns:
getLabel
public String getLabel()
Gets the descriptive label for the activity.
Returns:
getListenFor
public List
Gets the list of phrases and references that speech and language priming systems should listen for.
Returns:
getLocalTimestamp
public OffsetDateTime getLocalTimestamp()
Gets the local date and time of the message, expressed in ISO-8601 format. For example, 2016-09-23T13:07:49.4714686-07:00.
Returns:
getLocalTimezone
public String getLocalTimezone()
Gets the name of the local timezone of the message, expressed in IANA Time Zone database format. For example, America/Los_Angeles.
Returns:
getLocale
public String getLocale()
A locale name for the contents of the text field. The locale name is a combination of an ISO 639 two- or three-letter culture code associated with a language and an ISO 3166 two-letter subculture code associated with a country or region.
The locale name can also correspond to a valid BCP-47 language tag.
Returns:
getMembersAdded
public List
Gets the collection of members added to the conversation.
Returns:
getMembersRemoved
public List
Gets the collection of members removed from the conversation.
Returns:
getMentions
public List
Resolves the mentions from the entities of this activity. This method is defined on the Activity class, but is only intended for use with a message activity, where the activity Activity#type is set to MESSAGE.
Returns:
getName
public String getName()
Gets the name of the operation associated with an invoke or event activity.
Returns:
getProperties
public Map
Holds the overflow properties that aren't first class properties in the object. This allows extensibility while maintaining the object.
Returns:
getReactionsAdded
public List
Gets the collection of reactions added to the conversation.
Returns:
getReactionsRemoved
public List
Gets the collection of reactions removed from the conversation.
Returns:
getRecipient
public ChannelAccount getRecipient()
Identifies the recipient of the message.
Returns:
getRelatesTo
public ConversationReference getRelatesTo()
A reference to another conversation or activity.
Returns:
getReplyConversationReference
public ConversationReference getReplyConversationReference(ResourceResponse reply)
Create a ConversationReference based on this Activity's Conversation info and the ResourceResponse from sending an activity.
Parameters:
Returns:
getReplyToId
public String getReplyToId()
Gets the ID of the message to which this message is a reply.
Returns:
getServiceUrl
public String getServiceUrl()
Sets the URL that specifies the channel's service endpoint. Set by the channel.
Returns:
getSpeak
public String getSpeak()
The text to speak.
Returns:
getSuggestedActions
public SuggestedActions getSuggestedActions()
Gets the suggested actions for the activity.
Returns:
getSummary
public String getSummary()
Gets the text to display if the channel cannot render cards.
Returns:
getText
public String getText()
Gets the text content of the message.
Returns:
getTextFormat
public TextFormatTypes getTextFormat()
Format of text fields Default:markdown. Possible values include: 'markdown', 'plain', 'xml'.
Returns:
getTextHighlights
public List
Gets the collection of text fragments to highlight when the activity contains a ReplyToId value.
Returns:
getTimestamp
public OffsetDateTime getTimestamp()
Gets the date and time that the message was sent, in UTC, expressed in ISO-8601 format.
Returns:
getTopicName
public String getTopicName()
Gets the updated topic name of the conversation.
Returns:
getType
getValue
public Object getValue()
Gets the value that is associated with the activity.
Returns:
getValueType
public String getValueType()
Gets the type of the activity's value object.
Returns:
hasContent
public boolean hasContent()
Checks if this (message) activity has content.
Returns:
isActivity
protected boolean isActivity(String activityType)
True if the Activity is of the specified activity type.
Parameters:
Returns:
isFromStreamingConnection
public Boolean isFromStreamingConnection()
Determines if the Activity was sent via an Http/Https connection or Streaming This can be determined by looking at the ServiceUrl property: (1) All channels that send messages via http/https are not streaming (2) Channels that send messages via streaming have a ServiceUrl that does not begin with http/https.
Returns:
isTeamsActivity
public boolean isTeamsActivity()
Check if this actvity is from microsoft teams.
Returns:
isType
public boolean isType(String compareTo)
Convenience method to return if the Activity is of the specified type.
Parameters:
Returns:
removeMentionText
public String removeMentionText(String withId)
Remove any mention text for given id from the Activity.Text property. For example, given the message "@echoBot Hi Bot", this will remove "@echoBot", leaving "Hi Bot". Typically this would be used to remove the mention text for the target recipient (the bot usually), though it could be called for each member. For example: turnContext.Activity.RemoveMentionText(turnContext.Activity.Recipient.Id); The format of a mention Activity.Entity is dependent on the Channel. But in all cases we expect the Mention.Text to contain the exact text for the user as it appears in Activity.Text. For example, Teams uses <at>username</at>, whereas slack use @username. It is expected that text is in Activity.Text and this method will remove that value from Activity.Text.
Parameters:
Returns:
removeMentionTextImmutable
public static String removeMentionTextImmutable(Activity activity, String id)
Removes the mention from the Activity.Text without modifying the Activity.
Parameters:
Returns:
removeRecipientMention
public String removeRecipientMention()
Remove recipient mention text from Text property. Use with caution because this function is altering the text on the Activity.
Returns:
removeRecipientMentionImmutable
public static String removeRecipientMentionImmutable(Activity activity)
Removes recipient mention without modifying the Activity.
Parameters:
Returns:
setAction
public void setAction(String withAction)
Indicates whether the recipient of a contactRelationUpdate was added or removed from the sender's contact list.
Parameters:
setAttachment
public void setAttachment(Attachment withAttachment)
Sets a single attachment on the Activity.
Parameters:
setAttachmentLayout
public void setAttachmentLayout(AttachmentLayoutTypes withAttachmentLayout)
Sets the layout hint for multiple attachments.
Parameters:
setAttachments
public void setAttachments(List
Sets the attachments to the Activity.
Parameters:
setCallerId
public void setCallerId(String withCallerId)
Sets the IRI identifying the caller of a bot. This field is not intended to be transmitted over the wire, but is instead populated by bots and clients based on cryptographically verifiable data that asserts the identity of the callers (e.g. tokens).
Parameters:
setChannelData
public void setChannelData(Object withChannelData)
Sets channel-specific content.
Parameters:
setChannelId
public void setChannelId(String withChannelId)
Sets the ID that uniquely identifies the channel. Set by the channel.
Parameters:
setCode
public void setCode(EndOfConversationCodes withCode)
Sets the a code for endOfConversation activities that indicates why the conversation ended.
Parameters:
setConversation
public void setConversation(ConversationAccount withConversation)
Identifies the conversation to which the activity belongs.
Parameters:
setDeliveryMode
public void setDeliveryMode(String withDeliveryMode)
A delivery hint to signal to the recipient alternate delivery paths for the activity.
The default delivery mode is \"default\".
Parameters:
setEntities
public void setEntities(List
Sets payload version of the Entities in an Activity.
Parameters:
setExpiration
public void setExpiration(LocalDateTime withExpiration)
Sets the time at which the activity should be considered to be expired and should not be presented to the recipient.
Parameters:
setFrom
public void setFrom(ChannelAccount withFrom)
Identifies the sender of the message.
Parameters:
setHistoryDisclosed
public void setHistoryDisclosed(boolean withHistoryDisclosed)
Sets whether the prior history of the channel is disclosed.
Parameters:
setId
public void setId(String withId)
Sets the ID that uniquely identifies the activity on the channel.
Parameters:
setImportance
public void setImportance(String withImportance)
Sets the importance of the activity.
Parameters:
setInputHint
public void setInputHint(InputHints withInputHint)
Indicates whether your bot is accepting, expecting, or ignoring user input after the message is delivered to the client.
Parameters:
setLabel
public void setLabel(String withLabel)
Sets the descriptive label for the activity.
Parameters:
setListenFor
public void setListenFor(List
Sets the list of phrases and references that speech and language priming systems should listen for.
Parameters:
setLocalTimeZone
public void setLocalTimeZone(String withLocalTimezone)
Sets the name of the local timezone of the message, expressed in IANA Time Zone database format. For example, America/Los_Angeles.
Parameters:
setLocalTimestamp
public void setLocalTimestamp(OffsetDateTime withLocalTimestamp)
Contains the local date and time of the message, expressed in ISO-8601 format. For example, 2016-09-23T13:07:49.4714686-07:00.
Parameters:
setLocale
public void setLocale(String withLocale)
A locale name for the contents of the text field. The locale name is a combination of an ISO 639 two- or three-letter culture code associated with a language and an ISO 3166 two-letter subculture code associated with a country or region.
The locale name can also correspond to a valid BCP-47 language tag.
Parameters:
setMembersAdded
public void setMembersAdded(List
Sets the collection of members added to the conversation.
Parameters:
setMembersRemoved
public void setMembersRemoved(List
Sets the collection of members removed from the conversation.
Parameters:
setMentions
public void setMentions(List
Sets payload version of the Mentions in an Activity.
Parameters:
setName
public void setName(String withName)
Sets the name of the operation associated with an invoke or event activity.
Parameters:
setProperties
public void setProperties(String key, JsonNode withValue)
Holds the overflow properties that aren't first class properties in the object. This allows extensibility while maintaining the object.
Parameters:
setReactionsAdded
public void setReactionsAdded(List
Sets the collection of reactions added to the conversation.
Parameters:
setReactionsRemoved
public void setReactionsRemoved(List
Sets the collection of reactions removed from the conversation.
Parameters:
setRecipient
public void setRecipient(ChannelAccount withRecipient)
Identifies the recipient of the message.
Parameters:
setRelatesTo
public void setRelatesTo(ConversationReference withRelatesTo)
A reference to another conversation or activity.
Parameters:
setReplyToId
public void setReplyToId(String withReplyToId)
Sets the ID of the message to which this message is a reply.
Parameters:
setServiceUrl
public void setServiceUrl(String withServiceUrl)
Sets the URL that specifies the channel's service endpoint. Set by the channel.
Parameters:
setSpeak
public void setSpeak(String withSpeak)
Sets the text to speak.
Parameters:
setSuggestedActions
public void setSuggestedActions(SuggestedActions withSuggestedActions)
The suggested actions for the activity.
Parameters:
setSummary
public void setSummary(String withSummary)
Sets the text to display if the channel cannot render cards.
Parameters:
setText
public void setText(String withText)
Sets the text content of the message.
Parameters:
setTextFormat
public void setTextFormat(TextFormatTypes withTextFormat)
Format of text fields.
Parameters:
setTextHighlights
public void setTextHighlights(List
Sets the collection of text fragments to highlight when the activity contains a ReplyToId value.
Parameters:
setTimestamp
public void setTimestamp(OffsetDateTime withTimestamp)
Sets the date and time that the message was sent, in UTC, expressed in ISO-8601 format.
Parameters:
setTopicName
public void setTopicName(String withTopicName)
Sets the updated topic name of the conversation.
Parameters:
setType
public void setType(String withType)
Sets the ActivityTypes of the activity.
Parameters:
setValue
public void setValue(Object withValue)
Sets the value that is associated with the activity.
Parameters:
setValueType
public void setValueType(String withValueType)
Sets the type of the activity's value object.
Parameters:
teamsGetChannelData
public TeamsChannelData teamsGetChannelData()
Gets the TeamsChannelData.
Returns:
teamsGetChannelId
public String teamsGetChannelId()
Get unique identifier representing a channel.
Returns:
teamsGetMeetingInfo
public TeamsMeetingInfo teamsGetMeetingInfo()
Gets the TeamsMeetingInfo object from the current activity.
Returns:
teamsGetTeamId
public String teamsGetTeamId()
Get unique identifier representing a team.
Returns:
teamsGetTeamInfo
public TeamInfo teamsGetTeamInfo()
Get Teams TeamInfo data.
Returns:
teamsNotifyUser
public void teamsNotifyUser()
Sets the notification value in the TeamsChannelData to true.
teamsNotifyUser
public void teamsNotifyUser(boolean alertInMeeting, String externalResourceUrl)
Sets the notification of a meeting in the TeamsChannelData.
Parameters: