ConversationAccount 类
- java.
lang. Object - com.
microsoft. bot. schema. ConversationAccount
- com.
public class ConversationAccount
会话帐户表示通道中聊天的标识。
构造函数摘要
| 构造函数 | 说明 |
|---|---|
| ConversationAccount() |
空对话 |
| ConversationAccount(boolean withIsGroup, String withId, String withName) |
初始化 Conversation |
| ConversationAccount(boolean withIsGroup, String withConversationType, String withId, String withName, String withAadObjectId, RoleTypes withRole, String withTenantId) |
初始化 Conversation |
| ConversationAccount(String withId) |
初始化 Conversation |
方法摘要
| 修饰符和类型 | 方法和描述 |
|---|---|
|
static
Conversation |
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()
溢出属性。 |
|
Role |
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
构造函数详细信息
ConversationAccount
public ConversationAccount()
空 ConversationAccount。
ConversationAccount
public ConversationAccount(boolean withIsGroup, String withId, String withName)
初始化 ConversationAccount 类的新实例。
参数:
ConversationAccount
public ConversationAccount(boolean withIsGroup, String withConversationType, String withId, String withName, String withAadObjectId, RoleTypes withRole, String withTenantId)
初始化 ConversationAccount 类的新实例。
参数:
ConversationAccount
public ConversationAccount(String withId)
初始化 ConversationAccount 类的新实例。
参数:
方法详细信息
clone
public static ConversationAccount clone(ConversationAccount conversationAccount)
执行 ConversationAccount 的深层副本。
参数:
返回:
getAadObjectId
public String getAadObjectId()
获取 Azure Active Directory (AAD) 中的此帐户 #aadObjectId。
返回:
getConversationType
public String getConversationType()
获取 #conversationType 值。
返回:
getId
public String getId()
获取 #id 值。
返回:
getName
public String getName()
获取 #name 值。
返回:
getProperties
public Map
溢出属性。 此处可访问未建模为对象中的第一类属性的属性。 注意:可以嵌套属性值。
返回:
getRole
public RoleTypes getRole()
获取 #role 值。
返回:
getTenantId
public String getTenantId()
获取此对话的 #tenantId。
返回:
isGroup
public boolean isGroup()
获取 #isGroup 值。
返回:
setAadObjectId
public void setAadObjectId(String withAadObjectId)
在 Azure Active Directory (AAD)中设置此帐户的 #aadObjectId。
参数:
setConversationType
public void setConversationType(String withConversationType)
设置 #conversationType 值。
参数:
setId
public void setId(String withId)
设置 #id 值。
参数:
setIsGroup
public void setIsGroup(boolean withIsGroup)
设置 #isGroup 值。
参数:
setName
public void setName(String withName)
设置 #name 值。
参数:
setProperties
public void setProperties(String key, JsonNode value)
设置溢出属性。
参数:
setRole
public void setRole(RoleTypes withRole)
设置 #role 值。
参数:
setTenantId
public void setTenantId(String withTenantId)
设置此对话的 #tenantId。
参数: