ChannelAccount 类
- java.lang.Object
- com.microsoft.bot.schema.ChannelAccount
public class ChannelAccount
路由消息所需的通道帐户信息。
构造函数摘要
构造函数 | 说明 |
---|---|
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 ChannelAccount |
clone(ChannelAccount channelAccount)
执行频道 |
static
java.util.List<ChannelAccount> |
cloneList(List<ChannelAccount> channelAccounts)
执行频道 |
java.lang.String |
getAadObjectId()
此帐户在 Azure Active Directory (AAD) 中的对象 ID。 |
java.lang.String |
getId()
此通道上用户或机器人的通道 ID (示例:joe@smith。 |
java.lang.String |
getName()
显示友好名称。 |
java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> |
getProperties()
溢出属性。 |
RoleTypes |
getRole()
帐户背后的实体角色 (示例:用户、机器人等) 。 |
void |
setAadObjectId(String withAadObjectId)
此帐户在 Azure Active Directory (AAD) 中的对象 ID。 |
void |
setId(String withId)
此通道上用户或机器人的通道 ID (示例:joe@smith。 |
void |
setName(String withName)
显示友好名称。 |
void |
setProperties(String key, JsonNode value)
设置溢出属性。 |
void |
setRole(RoleTypes withRole)
帐户背后的实体角色 (示例:用户、机器人等) 。 |
方法继承自 java.lang.Object
构造函数详细信息
ChannelAccount
public ChannelAccount()
初始化 ChannelAccount 类的新实例。
ChannelAccount
public ChannelAccount(String withId)
初始化 ChannelAccount 类的新实例。
Parameters:
ChannelAccount
public ChannelAccount(String withId, String withName)
初始化 ChannelAccount 类的新实例。
Parameters:
ChannelAccount
public ChannelAccount(String withId, String withName, RoleTypes withRole)
初始化 ChannelAccount 类的新实例。
Parameters:
ChannelAccount
public ChannelAccount(String withId, String withName, RoleTypes withRole, String withAadObjectId)
初始化 ChannelAccount 类的新实例。
Parameters:
方法详细信息
clone
public static ChannelAccount clone(ChannelAccount channelAccount)
执行 ChannelAccount 的深层复制。
Parameters:
Returns:
cloneList
public static List
执行 ChannelAccounts 列表的深层复制。
Parameters:
Returns:
getAadObjectId
public String getAadObjectId()
此帐户在 Azure Active Directory (AAD) 中的对象 ID。
Returns:
getId
public String getId()
此通道上用户或机器人的通道 ID (示例: joe@smith.com、 或 @joesmith 123456) 。
Returns:
getName
public String getName()
显示友好名称。
Returns:
getProperties
public Map
溢出属性。 此处可访问对象中未建模为第一类属性的属性。 注意:属性值可以嵌套。
Returns:
getRole
public RoleTypes getRole()
帐户背后的实体角色 (示例:用户、机器人等) 。
Returns:
setAadObjectId
public void setAadObjectId(String withAadObjectId)
此帐户在 Azure Active Directory (AAD) 中的对象 ID。
Parameters:
setId
public void setId(String withId)
此通道上用户或机器人的通道 ID (示例: joe@smith.com、 或 @joesmith 123456) 。
Parameters:
setName
public void setName(String withName)
显示友好名称。
Parameters:
setProperties
public void setProperties(String key, JsonNode value)
设置溢出属性。
Parameters:
setRole
public void setRole(RoleTypes withRole)
帐户背后的实体角色 (示例:用户、机器人等) 。
Parameters: