ChannelAccount Class
- java.
lang. Object - com.
microsoft. bot. schema. ChannelAccount
- com.
public class ChannelAccount
Channel account information needed to route a message.
Constructor Summary
| Constructor | Description |
|---|---|
| ChannelAccount() |
Initializes a new instance of the Channel |
| ChannelAccount(String withId) |
Initializes a new instance of the Channel |
| ChannelAccount(String withId, String withName) |
Initializes a new instance of the Channel |
| ChannelAccount(String withId, String withName, RoleTypes withRole) |
Initializes a new instance of the Channel |
| ChannelAccount(String withId, String withName, RoleTypes withRole, String withAadObjectId) |
Initializes a new instance of the Channel |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Channel |
clone(ChannelAccount channelAccount)
Perform a deep copy of a Channel |
|
static
java.util.List<Channel |
cloneList(List<ChannelAccount> channelAccounts)
Performs a deep copy of a List of Channel |
| java.lang.String |
getAadObjectId()
This account's object ID within Azure Active Directory (AAD). |
| java.lang.String |
getId()
Channel id for the user or bot on this channel (Example: joe@smith. |
| java.lang.String |
getName()
Display friendly name. |
| java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> |
getProperties()
Overflow properties. |
|
Role |
getRole()
Role of the entity behind the account (Example: User, Bot, etc.). |
| void |
setAadObjectId(String withAadObjectId)
This account's object ID within Azure Active Directory (AAD). |
| void |
setId(String withId)
Channel id for the user or bot on this channel (Example: joe@smith. |
| void |
setName(String withName)
Display friendly name. |
| void |
setProperties(String key, JsonNode value)
Set overflow properties. |
| void |
setRole(RoleTypes withRole)
Role of the entity behind the account (Example: User, Bot, etc.). |
Methods inherited from java.lang.Object
Constructor Details
ChannelAccount
public ChannelAccount()
Initializes a new instance of the ChannelAccount class.
ChannelAccount
public ChannelAccount(String withId)
Initializes a new instance of the ChannelAccount class.
Parameters:
ChannelAccount
public ChannelAccount(String withId, String withName)
Initializes a new instance of the ChannelAccount class.
Parameters:
ChannelAccount
public ChannelAccount(String withId, String withName, RoleTypes withRole)
Initializes a new instance of the ChannelAccount class.
Parameters:
ChannelAccount
public ChannelAccount(String withId, String withName, RoleTypes withRole, String withAadObjectId)
Initializes a new instance of the ChannelAccount class.
Parameters:
Method Details
clone
public static ChannelAccount clone(ChannelAccount channelAccount)
Perform a deep copy of a ChannelAccount.
Parameters:
Returns:
cloneList
public static List
Performs a deep copy of a List of ChannelAccounts.
Parameters:
Returns:
getAadObjectId
public String getAadObjectId()
This account's object ID within Azure Active Directory (AAD).
Returns:
getId
public String getId()
Channel id for the user or bot on this channel (Example: joe@smith.com, or @joesmith or 123456).
Returns:
getName
public String getName()
Display friendly name.
Returns:
getProperties
public Map
Overflow properties. Properties that are not modelled as first class properties in the object are accessible here. Note: A property value can be be nested.
Returns:
getRole
public RoleTypes getRole()
Role of the entity behind the account (Example: User, Bot, etc.).
Returns:
setAadObjectId
public void setAadObjectId(String withAadObjectId)
This account's object ID within Azure Active Directory (AAD).
Parameters:
setId
public void setId(String withId)
Channel id for the user or bot on this channel (Example: joe@smith.com, or @joesmith or 123456).
Parameters:
setName
public void setName(String withName)
Display friendly name.
Parameters:
setProperties
public void setProperties(String key, JsonNode value)
Set overflow properties.
Parameters:
setRole
public void setRole(RoleTypes withRole)
Role of the entity behind the account (Example: User, Bot, etc.).
Parameters: