ConversationAccount 类

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

public class ConversationAccount

对话帐户表示通道中会话的标识。

构造函数摘要

构造函数 说明
ConversationAccount()

空对话帐户。

ConversationAccount(boolean withIsGroup, String withId, String withName)

初始化 ConversationAccount 类的新实例。

ConversationAccount(boolean withIsGroup, String withConversationType, String withId, String withName, String withAadObjectId, RoleTypes withRole, String withTenantId)

初始化 ConversationAccount 类的新实例。

ConversationAccount(String withId)

初始化 ConversationAccount 类的新实例。

方法摘要

修饰符和类型 方法和描述
static ConversationAccount clone(ConversationAccount conversationAccount)

执行对话帐户的深层复制。

java.lang.String getAadObjectId()

在 Azure Active Directory (AAD) 中获取此帐户 #aadObjectId

java.lang.String getConversationType()

获取 #conversationType 值。

java.lang.String getId()

获取 #id 值。

java.lang.String getName()

获取 #name 值。

java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> getProperties()

溢出属性。

RoleTypes getRole()

获取 #role 值。

java.lang.String getTenantId()

获取此会话的 #tenantId

boolean isGroup()

获取 #isGroup 值。

void setAadObjectId(String withAadObjectId)

在 Azure Active Directory (AAD) 中设置此帐户 #aadObjectId

void setConversationType(String withConversationType)

#conversationType设置值。

void setId(String withId)

#id设置值。

void setIsGroup(boolean withIsGroup)

#isGroup设置值。

void setName(String withName)

#name设置值。

void setProperties(String key, JsonNode value)

设置溢出属性。

void setRole(RoleTypes withRole)

#role设置值。

void setTenantId(String withTenantId)

设置此对话的 #tenantId

方法继承自 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

构造函数详细信息

ConversationAccount

public ConversationAccount()

空 ConversationAccount。

ConversationAccount

public ConversationAccount(boolean withIsGroup, String withId, String withName)

初始化 ConversationAccount 类的新实例。

Parameters:

withIsGroup - 指示会话在活动时是否包含两个以上的参与者。
withId - 此通道上用户或机器人的通道 ID (示例: joe@smith.com、 或 @joesmith 123456) 。
withName - 显示友好名称。

ConversationAccount

public ConversationAccount(boolean withIsGroup, String withConversationType, String withId, String withName, String withAadObjectId, RoleTypes withRole, String withTenantId)

初始化 ConversationAccount 类的新实例。

Parameters:

withIsGroup - 指示会话在活动时是否包含两个以上的参与者。
withConversationType - 指示频道中区分会话的对话类型。
withId - 此通道上用户或机器人的通道 ID (示例: joe@smith.com、 或 @joesmith 123456) 。
withName - 显示友好名称。
withAadObjectId - 此帐户在 Azure Active Directory (AAD) 中的对象 ID。
withRole - 帐户背后的实体角色 (示例:用户、机器人等) 。 可能的值包括:“user”、“bot”。
withTenantId - 此聊天的租户 ID。

ConversationAccount

public ConversationAccount(String withId)

初始化 ConversationAccount 类的新实例。

Parameters:

withId - 此通道上用户或机器人的通道 ID (示例: joe@smith.com、 或 @joesmith 123456) 。

方法详细信息

clone

public static ConversationAccount clone(ConversationAccount conversationAccount)

执行 ConversationAccount 的深层复制。

Parameters:

conversationAccount - 要复制的 ConversationAccount。

Returns:

克隆的 ConversationAccount。

getAadObjectId

public String getAadObjectId()

在 Azure Active Directory (AAD) 中获取此帐户 #aadObjectId

Returns:

AAD 对象 ID。

getConversationType

public String getConversationType()

获取 #conversationType 值。

Returns:

conversationType 值

getId

public String getId()

获取 #id 值。

Returns:

id 值

getName

public String getName()

获取 #name 值。

Returns:

名称值

getProperties

public Map getProperties()

溢出属性。 此处可访问对象中未建模为第一类属性的属性。 注意:属性值可以嵌套。

Returns:

属性的Key-Value映射

getRole

public RoleTypes getRole()

获取 #role 值。

Returns:

角色值

getTenantId

public String getTenantId()

获取此会话的 #tenantId

Returns:

tenantId 值。

isGroup

public boolean isGroup()

获取 #isGroup 值。

Returns:

isGroup 值

setAadObjectId

public void setAadObjectId(String withAadObjectId)

在 Azure Active Directory (AAD) 中设置此帐户 #aadObjectId

Parameters:

withAadObjectId - 要设置的 AAD ID

setConversationType

public void setConversationType(String withConversationType)

#conversationType设置值。

Parameters:

withConversationType - 要设置的 conversationType 值

setId

public void setId(String withId)

#id设置值。

Parameters:

withId - 要设置的 id 值

setIsGroup

public void setIsGroup(boolean withIsGroup)

#isGroup设置值。

Parameters:

withIsGroup - 要设置的 isGroup 值

setName

public void setName(String withName)

#name设置值。

Parameters:

withName - 要设置的名称值

setProperties

public void setProperties(String key, JsonNode value)

设置溢出属性。

Parameters:

key - 属性的键
value - 值 (的 JsonNode 可以嵌套)

setRole

public void setRole(RoleTypes withRole)

#role设置值。

Parameters:

withRole - 要设置的角色值

setTenantId

public void setTenantId(String withTenantId)

设置此对话的 #tenantId

Parameters:

withTenantId - 此对话的租户 ID

适用于