ChannelAccount 類別
- java.
lang. Object - com.
microsoft. bot. schema. ChannelAccount
- com.
public class ChannelAccount
路由傳送訊息所需的通道帳戶資訊。
建構函式摘要
| 建構函式 | Description |
|---|---|
| ChannelAccount() |
初始化 Channel |
| ChannelAccount(String withId) |
初始化 Channel |
| ChannelAccount(String withId, String withName) |
初始化 Channel |
| ChannelAccount(String withId, String withName, RoleTypes withRole) |
初始化 Channel |
| ChannelAccount(String withId, String withName, RoleTypes withRole, String withAadObjectId) |
初始化 Channel |
方法摘要
| 修飾詞與類型 | 方法與描述 |
|---|---|
|
static
Channel |
clone(ChannelAccount channelAccount)
執行通道 |
|
static
java.util.List<Channel |
cloneList(List<ChannelAccount> channelAccounts)
執行通道 |
| java.lang.String |
getAadObjectId()
此帳戶在 Azure Active Directory (AAD) 內的物件識別碼。 |
| java.lang.String |
getId()
此通道上使用者或 Bot 的通道識別碼(例如:joe@smith. |
| java.lang.String |
getName()
顯示易記名稱。 |
| java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> |
getProperties()
溢位屬性。 |
|
Role |
getRole()
帳戶後方實體的角色(例如:使用者、Bot 等)。 |
| void |
setAadObjectId(String withAadObjectId)
此帳戶在 Azure Active Directory (AAD) 內的物件識別碼。 |
| void |
setId(String withId)
此通道上使用者或 Bot 的通道識別碼(例如:joe@smith. |
| void |
setName(String withName)
顯示易記名稱。 |
| void |
setProperties(String key, JsonNode value)
設定溢位屬性。 |
| void |
setRole(RoleTypes withRole)
帳戶後方實體的角色(例如:使用者、Bot 等)。 |
方法繼承來源 java.lang.Object
建構函式詳細資料
ChannelAccount
public ChannelAccount()
初始化 ChannelAccount 類別的新實例。
ChannelAccount
public ChannelAccount(String withId)
初始化 ChannelAccount 類別的新實例。
參數:
ChannelAccount
public ChannelAccount(String withId, String withName)
初始化 ChannelAccount 類別的新實例。
參數:
ChannelAccount
public ChannelAccount(String withId, String withName, RoleTypes withRole)
初始化 ChannelAccount 類別的新實例。
參數:
ChannelAccount
public ChannelAccount(String withId, String withName, RoleTypes withRole, String withAadObjectId)
初始化 ChannelAccount 類別的新實例。
參數:
方法詳細資料
clone
public static ChannelAccount clone(ChannelAccount channelAccount)
執行 ChannelAccount 的深層複本。
參數:
傳回:
cloneList
public static List
執行 ChannelAccounts 清單的深層複本。
參數:
傳回:
getAadObjectId
public String getAadObjectId()
此帳戶在 Azure Active Directory (AAD) 內的物件識別碼。
傳回:
getId
public String getId()
此通道上使用者或 Bot 的通道識別碼(例如:joe@smith.com或 @joesmith 或 123456)。
傳回:
getName
public String getName()
顯示易記名稱。
傳回:
getProperties
public Map
溢位屬性。 您可以在這裏存取未模型化為 物件中第一類屬性的屬性。 注意:屬性值可以是巢狀的。
傳回:
getRole
public RoleTypes getRole()
帳戶後方實體的角色(例如:使用者、Bot 等)。
傳回:
setAadObjectId
public void setAadObjectId(String withAadObjectId)
此帳戶在 Azure Active Directory (AAD) 內的物件識別碼。
參數:
setId
public void setId(String withId)
此通道上使用者或 Bot 的通道識別碼(例如:joe@smith.com或 @joesmith 或 123456)。
參數:
setName
public void setName(String withName)
顯示易記名稱。
參數:
setProperties
public void setProperties(String key, JsonNode value)
設定溢位屬性。
參數:
setRole
public void setRole(RoleTypes withRole)
帳戶後方實體的角色(例如:使用者、Bot 等)。
參數: