ConversationReference Class
- java.
lang. Object - com.
microsoft. bot. schema. ConversationReference
- com.
public class ConversationReference
An object relating to a particular point in a conversation.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| ConversationReference() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Conversation |
clone(ConversationReference conversationReference)
Performs a deep copy of a Conversation |
| java.lang.String |
getActivityId()
(Optional) ID of the activity to refer to. |
|
Channel |
getBot()
Bot participating in this conversation. |
| java.lang.String |
getChannelId()
Get the channel |
| Activity |
getContinuationActivity()
Creates Activity from conversation reference as it is posted to bot. |
|
Conversation |
getConversation()
Conversation reference. |
| java.lang.String |
getLocale()
Get the locale value. |
| java.lang.String |
getServiceUrl()
Service endpoint where operations concerning the referenced conversation may be performed. |
|
Channel |
getUser()
(Optional) User participating in this conversation. |
| void |
setActivityId(String withActivityId)
(Optional) ID of the activity to refer to. |
| void |
setBot(ChannelAccount withBot)
Bot participating in this conversation. |
| void |
setChannelId(String withChannelId)
Set the channel |
| void |
setConversation(ConversationAccount withConversation)
Conversation reference. |
| void |
setLocale(String withLocale)
Set the locale value. |
| void |
setServiceUrl(String withServiceUrl)
Service endpoint where operations concerning the referenced conversation may be performed. |
| void |
setUser(ChannelAccount withUser)
(Optional) User participating in this conversation. |
Methods inherited from java.lang.Object
Constructor Details
ConversationReference
public ConversationReference()
Method Details
clone
public static ConversationReference clone(ConversationReference conversationReference)
Performs a deep copy of a ConversationReference.
Parameters:
Returns:
getActivityId
public String getActivityId()
(Optional) ID of the activity to refer to.
Returns:
getBot
public ChannelAccount getBot()
Bot participating in this conversation.
Returns:
getChannelId
public String getChannelId()
Get the channelId value.
Returns:
getContinuationActivity
public Activity getContinuationActivity()
Creates Activity from conversation reference as it is posted to bot.
Returns:
getConversation
public ConversationAccount getConversation()
Conversation reference.
Returns:
getLocale
public String getLocale()
Get the locale value.
Returns:
getServiceUrl
public String getServiceUrl()
Service endpoint where operations concerning the referenced conversation may be performed.
Returns:
getUser
public ChannelAccount getUser()
(Optional) User participating in this conversation.
Returns:
setActivityId
public void setActivityId(String withActivityId)
(Optional) ID of the activity to refer to.
Parameters:
setBot
public void setBot(ChannelAccount withBot)
Bot participating in this conversation.
Parameters:
setChannelId
public void setChannelId(String withChannelId)
Set the channelId value.
Parameters:
setConversation
public void setConversation(ConversationAccount withConversation)
Conversation reference.
Parameters:
setLocale
public void setLocale(String withLocale)
Set the locale value.
Parameters:
setServiceUrl
public void setServiceUrl(String withServiceUrl)
Service endpoint where operations concerning the referenced conversation may be performed.
Parameters:
setUser
public void setUser(ChannelAccount withUser)
(Optional) User participating in this conversation.
Parameters: