TeamsChannelData Class

  • java.lang.Object
    • com.microsoft.bot.schema.teams.TeamsChannelData

public class TeamsChannelData

Channel data specific to messages received in Microsoft Teams.

Constructor Summary

Constructor Description
TeamsChannelData()

A new instance of TeamChannelData.

TeamsChannelData(String withTeamsChannelId, String withTeamsTeamId, ChannelInfo withChannel, String withEventType, TeamInfo withTeam, NotificationInfo withNotification, TenantInfo withTenant)

A new instance of TeamChannelData.

Method Summary

Modifier and Type Method and Description
ChannelInfo getChannel()

Gets information about the channel in which the message was sent.

java.lang.String getEventType()

Gets type of event.

TeamsMeetingInfo getMeeting()

Information about the meeting in which the message was sent.

NotificationInfo getNotification()

Gets notification settings for the message.

java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> getProperties()

Holds the overflow properties that aren't first class properties in the object.

TeamInfo getTeam()

Gets information about the team in which the message was sent.

java.lang.String getTeamsChannelId()

Get unique identifier representing a channel.

java.lang.String getTeamsTeamId()

Get unique identifier representing a team.

TenantInfo getTenant()

Gets information about the tenant in which the message was.

void setChannel(ChannelInfo withChannel)

Sets information about the channel in which the message was sent.

void setEventType(String withEventType)

Sets type of event.

void setMeeting(TeamsMeetingInfo withMeeting)

Sets information about the meeting in which the message was sent.

void setNotification(NotificationInfo withNotification)

Sets notification settings for the message.

void setProperties(String key, JsonNode withValue)

Holds the overflow properties that aren't first class properties in the object.

void setTeam(TeamInfo withTeam)

Sets information about the team in which the message was sent.

void setTeamsChannelId(String withTeamsChannelId)

Set unique identifier representing a channel.

void setTeamsTeamId(String withTeamsTeamId)

Set unique identifier representing a team.

void setTenant(TenantInfo withTenant)

Sets information about the tenant in which the message was.

Methods inherited from 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

Constructor Details

TeamsChannelData

public TeamsChannelData()

A new instance of TeamChannelData.

TeamsChannelData

public TeamsChannelData(String withTeamsChannelId, String withTeamsTeamId, ChannelInfo withChannel, String withEventType, TeamInfo withTeam, NotificationInfo withNotification, TenantInfo withTenant)

A new instance of TeamChannelData.

Parameters:

withTeamsChannelId - the channelId in Teams
withTeamsTeamId - the teamId in Teams
withChannel - information about the channel in which the message was sent.
withEventType - type of event.
withTeam - information about the team in which the message was sent.
withNotification - Notification settings for the message.
withTenant - Information about the tenant in which the message was.

Method Details

getChannel

public ChannelInfo getChannel()

Gets information about the channel in which the message was sent.

Returns:

information about the channel in which the message was sent.

getEventType

public String getEventType()

Gets type of event.

Returns:

type of event.

getMeeting

public TeamsMeetingInfo getMeeting()

Information about the meeting in which the message was sent.

Returns:

The meeting info

getNotification

public NotificationInfo getNotification()

Gets notification settings for the message.

Returns:

notification settings for the message.

getProperties

public Map<String,JsonNode> getProperties()

Holds the overflow properties that aren't first class properties in the object. This allows extensibility while maintaining the object.

Returns:

Map of additional properties.

getTeam

public TeamInfo getTeam()

Gets information about the team in which the message was sent.

Returns:

information about the team in which the message was sent.

getTeamsChannelId

public String getTeamsChannelId()

Get unique identifier representing a channel.

Returns:

Unique identifier representing a channel.

getTeamsTeamId

public String getTeamsTeamId()

Get unique identifier representing a team.

Returns:

Unique identifier representing a team.

getTenant

public TenantInfo getTenant()

Gets information about the tenant in which the message was.

Returns:

information about the tenant in which the message was.

setChannel

public void setChannel(ChannelInfo withChannel)

Sets information about the channel in which the message was sent.

Parameters:

withChannel - information about the channel in which the message was sent.

setEventType

public void setEventType(String withEventType)

Sets type of event.

Parameters:

withEventType - type of event.

setMeeting

public void setMeeting(TeamsMeetingInfo withMeeting)

Sets information about the meeting in which the message was sent.

Parameters:

withMeeting - The meeting info

setNotification

public void setNotification(NotificationInfo withNotification)

Sets notification settings for the message.

Parameters:

withNotification - settings for the message.

setProperties

public void setProperties(String key, JsonNode withValue)

Holds the overflow properties that aren't first class properties in the object. This allows extensibility while maintaining the object.

Parameters:

key - The key of the property to set.
withValue - The value for the property.

setTeam

public void setTeam(TeamInfo withTeam)

Sets information about the team in which the message was sent.

Parameters:

withTeam - information about the team in which the message was sent.

setTeamsChannelId

public void setTeamsChannelId(String withTeamsChannelId)

Set unique identifier representing a channel.

Parameters:

withTeamsChannelId - Unique identifier representing a channel.

setTeamsTeamId

public void setTeamsTeamId(String withTeamsTeamId)

Set unique identifier representing a team.

Parameters:

withTeamsTeamId - Unique identifier representing a team.

setTenant

public void setTenant(TenantInfo withTenant)

Sets information about the tenant in which the message was.

Parameters:

withTenant - information about the tenant in which the message was.

Applies to