ConversationReference 类

  • java.lang.Object
    • com.microsoft.bot.schema.ConversationReference

public class ConversationReference

与会话中的特定点相关的 对象。

构造函数摘要

构造函数 说明
ConversationReference()

方法摘要

修饰符和类型 方法和描述
static ConversationReference clone(ConversationReference conversationReference)

执行对话引用的深层副本。

java.lang.String getActivityId()

(要引用的活动的可选) ID。

ChannelAccount getBot()

参与此聊天的机器人。

java.lang.String getChannelId()

获取通道ID 值。

Activity getContinuationActivity()

Activity从发布到机器人的聊天引用创建。

ConversationAccount getConversation()

对话引用。

java.lang.String getLocale()

获取区域设置值。

java.lang.String getServiceUrl()

可在其中执行有关引用会话的操作的服务终结点。

ChannelAccount getUser()

(参与此对话的可选) 用户。

void setActivityId(String withActivityId)

(要引用的活动的可选) ID。

void setBot(ChannelAccount withBot)

参与此聊天的机器人。

void setChannelId(String withChannelId)

设置通道ID 值。

void setConversation(ConversationAccount withConversation)

对话引用。

void setLocale(String withLocale)

设置区域设置值。

void setServiceUrl(String withServiceUrl)

可在其中执行有关引用会话的操作的服务终结点。

void setUser(ChannelAccount withUser)

(参与此对话的可选) 用户。

方法继承自 java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

构造函数详细信息

ConversationReference

public ConversationReference()

方法详细信息

clone

public static ConversationReference clone(ConversationReference conversationReference)

执行 ConversationReference 的深层副本。

Parameters:

conversationReference - 要复制的 ConversationReference。

Returns:

ConversationReference 的克隆。

getActivityId

public String getActivityId()

(要引用的活动的可选) ID。

Returns:

activityId 值

getBot

public ChannelAccount getBot()

参与此聊天的机器人。

Returns:

机器人值

getChannelId

public String getChannelId()

获取 channelId 值。

Returns:

channelId 值

getContinuationActivity

public Activity getContinuationActivity()

Activity从发布到机器人的聊天引用创建。

Returns:

延续活动。

getConversation

public ConversationAccount getConversation()

对话引用。

Returns:

对话值

getLocale

public String getLocale()

获取区域设置值。

Returns:

区域设置值

getServiceUrl

public String getServiceUrl()

可在其中执行有关引用会话的操作的服务终结点。

Returns:

serviceUrl 值

getUser

public ChannelAccount getUser()

(参与此对话的可选) 用户。

Returns:

用户值

setActivityId

public void setActivityId(String withActivityId)

(要引用的活动的可选) ID。

Parameters:

withActivityId - 要设置的 activityId 值

setBot

public void setBot(ChannelAccount withBot)

参与此聊天的机器人。

Parameters:

withBot - 要设置的机器人值

setChannelId

public void setChannelId(String withChannelId)

设置 channelId 值。

Parameters:

withChannelId - 要设置的 channelId 值

setConversation

public void setConversation(ConversationAccount withConversation)

对话引用。

Parameters:

withConversation - 要设置的对话值

setLocale

public void setLocale(String withLocale)

设置区域设置值。

Parameters:

withLocale - 要设置的区域设置值

setServiceUrl

public void setServiceUrl(String withServiceUrl)

可在其中执行有关引用会话的操作的服务终结点。

Parameters:

withServiceUrl - 要设置的 serviceUrl 值

setUser

public void setUser(ChannelAccount withUser)

(参与此对话的可选) 用户。

Parameters:

withUser - 要设置的用户值

适用于