ConversationReference 类
- java.
lang. Object - com.
microsoft. bot. schema. ConversationReference
- com.
public class ConversationReference
与对话中的特定点相关的对象。
构造函数摘要
| 构造函数 | 说明 | |
|---|---|---|
| ConversationReference() | ||
方法摘要
| 修饰符和类型 | 方法和描述 |
|---|---|
|
static
Conversation |
clone(ConversationReference conversationReference)
执行对话 |
| java.lang.String |
getActivityId()
(可选)要引用的活动的 ID。 |
|
Channel |
getBot()
参与此对话的机器人。 |
| java.lang.String |
getChannelId()
获取通道 |
| Activity |
getContinuationActivity()
从聊天引用创建 Activity,因为它发布到机器人。 |
|
Conversation |
getConversation()
对话参考。 |
| java.lang.String |
getLocale()
获取区域设置值。 |
| java.lang.String |
getServiceUrl()
可以执行与所引用会话相关的作的服务终结点。 |
|
Channel |
getUser()
(可选)参与此对话的用户。 |
| void |
setActivityId(String withActivityId)
(可选)要引用的活动的 ID。 |
| void |
setBot(ChannelAccount withBot)
参与此对话的机器人。 |
| void |
setChannelId(String withChannelId)
设置通道 |
| void |
setConversation(ConversationAccount withConversation)
对话参考。 |
| void |
setLocale(String withLocale)
设置区域设置值。 |
| void |
setServiceUrl(String withServiceUrl)
可以执行与所引用会话相关的作的服务终结点。 |
| void |
setUser(ChannelAccount withUser)
(可选)参与此对话的用户。 |
方法继承自 java.lang.Object
构造函数详细信息
ConversationReference
public ConversationReference()
方法详细信息
clone
public static ConversationReference clone(ConversationReference conversationReference)
执行 ConversationReference 的深层副本。
参数:
返回:
getActivityId
public String getActivityId()
(可选)要引用的活动的 ID。
返回:
getBot
public ChannelAccount getBot()
参与此对话的机器人。
返回:
getChannelId
public String getChannelId()
获取 channelId 值。
返回:
getContinuationActivity
getConversation
public ConversationAccount getConversation()
对话参考。
返回:
getLocale
public String getLocale()
获取区域设置值。
返回:
getServiceUrl
public String getServiceUrl()
可以执行与所引用会话相关的作的服务终结点。
返回:
getUser
public ChannelAccount getUser()
(可选)参与此对话的用户。
返回:
setActivityId
public void setActivityId(String withActivityId)
(可选)要引用的活动的 ID。
参数:
setBot
public void setBot(ChannelAccount withBot)
参与此对话的机器人。
参数:
setChannelId
public void setChannelId(String withChannelId)
设置 channelId 值。
参数:
setConversation
public void setConversation(ConversationAccount withConversation)
对话参考。
参数:
setLocale
public void setLocale(String withLocale)
设置区域设置值。
参数:
setServiceUrl
public void setServiceUrl(String withServiceUrl)
可以执行与所引用会话相关的作的服务终结点。
参数:
setUser
public void setUser(ChannelAccount withUser)
(可选)参与此对话的用户。
参数: