ConversationAccount 類別

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

public class ConversationAccount

交談帳戶代表通道內交談的身分識別。

建構函式摘要

建構函式 Description
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 類別的新實例。

參數:

withIsGroup - 指出活動發生時交談是否包含兩個以上的參與者。
withId - 此通道上使用者或 Bot 的通道識別碼(例如:joe@smith.com或 @joesmith 或 123456)。
withName - 顯示易記名稱。

ConversationAccount

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

初始化 ConversationAccount 類別的新實例。

參數:

withIsGroup - 指出活動發生時交談是否包含兩個以上的參與者。
withConversationType - 指出通道中區分交談的交談類型。
withId - 此通道上使用者或 Bot 的通道識別碼(例如:joe@smith.com或 @joesmith 或 123456)。
withName - 顯示易記名稱。
withAadObjectId - 此帳戶在 Azure Active Directory (AAD) 內的物件識別碼。
withRole - 帳戶後方實體的角色(例如:使用者、Bot 等)。 可能的值包括:『user』、『bot』。
withTenantId - 此交談的租用戶標識碼。

ConversationAccount

public ConversationAccount(String withId)

初始化 ConversationAccount 類別的新實例。

參數:

withId - 此通道上使用者或 Bot 的通道識別碼(例如:joe@smith.com或 @joesmith 或 123456)。

方法詳細資料

clone

public static ConversationAccount clone(ConversationAccount conversationAccount)

執行 ConversationAccount 的深層複本。

參數:

conversationAccount - 要複製的 ConversationAccount。

傳回:

複製的 ConversationAccount。

getAadObjectId

public String getAadObjectId()

取得此帳戶在 Azure Active Directory (AAD) 內的 #aadObjectId

傳回:

AAD 物件識別碼。

getConversationType

public String getConversationType()

取得 #conversationType 值。

傳回:

conversationType 值

getId

public String getId()

取得 #id 值。

傳回:

標識碼

getName

public String getName()

取得 #name 值。

傳回:

名稱值

getProperties

public Map getProperties()

溢位屬性。 您可以在這裏存取未模型化為 物件中第一類屬性的屬性。 注意:屬性值可以是巢狀的。

傳回:

屬性的 Key-Value 對應

getRole

public RoleTypes getRole()

取得 #role 值。

傳回:

角色值

getTenantId

public String getTenantId()

取得此交談的 #tenantId

傳回:

tenantId 值。

isGroup

public boolean isGroup()

取得 #isGroup 值。

傳回:

isGroup 值

setAadObjectId

public void setAadObjectId(String withAadObjectId)

設定此帳戶在 Azure Active Directory (AAD) 內的 #aadObjectId

參數:

withAadObjectId - 要設定的 AAD 識別碼

setConversationType

public void setConversationType(String withConversationType)

設定 #conversationType 值。

參數:

withConversationType - 要設定的 conversationType 值

setId

public void setId(String withId)

設定 #id 值。

參數:

withId - 要設定的標識碼值

setIsGroup

public void setIsGroup(boolean withIsGroup)

設定 #isGroup 值。

參數:

withIsGroup - 要設定的isGroup值

setName

public void setName(String withName)

設定 #name 值。

參數:

withName - 要設定的名稱值

setProperties

public void setProperties(String key, JsonNode value)

設定溢位屬性。

參數:

key - 屬性的索引鍵
value - 值的 JsonNode (可以巢狀化)

setRole

public void setRole(RoleTypes withRole)

設定 #role 值。

參數:

withRole - 要設定的角色值

setTenantId

public void setTenantId(String withTenantId)

設定此交談的 #tenantId

參數:

withTenantId - 此交談的租用戶標識碼

適用於