Class ChatMessage

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.ChatMessage
All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject

public class ChatMessage extends Entity implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the Chat Message.
  • Field Details

    • attachments

      @SerializedName(value="attachments", alternate="Attachments") @Expose @Nullable public List<ChatMessageAttachment> attachments
      The Attachments. References to attached objects like files, tabs, meetings etc.
    • body

      @SerializedName(value="body", alternate="Body") @Expose @Nullable public ItemBody body
      The Body. Plaintext/HTML representation of the content of the chat message. Representation is specified by the contentType inside the body. The content is always in HTML if the chat message contains a chatMessageMention.
    • channelIdentity

      @SerializedName(value="channelIdentity", alternate="ChannelIdentity") @Expose @Nullable public ChannelIdentity channelIdentity
      The Channel Identity. If the message was sent in a channel, represents identity of the channel.
    • chatId

      @SerializedName(value="chatId", alternate="ChatId") @Expose @Nullable public String chatId
      The Chat Id. If the message was sent in a chat, represents the identity of the chat.
    • createdDateTime

      @SerializedName(value="createdDateTime", alternate="CreatedDateTime") @Expose @Nullable public OffsetDateTime createdDateTime
      The Created Date Time. Timestamp of when the chat message was created.
    • deletedDateTime

      @SerializedName(value="deletedDateTime", alternate="DeletedDateTime") @Expose @Nullable public OffsetDateTime deletedDateTime
      The Deleted Date Time. Read only. Timestamp at which the chat message was deleted, or null if not deleted.
    • etag

      @SerializedName(value="etag", alternate="Etag") @Expose @Nullable public String etag
      The Etag. Read-only. Version number of the chat message.
    • eventDetail

      @SerializedName(value="eventDetail", alternate="EventDetail") @Expose @Nullable public EventMessageDetail eventDetail
      The Event Detail. Read-only. If present, represents details of an event that happened in a chat, a channel, or a team, for example, adding new members. For event messages, the messageType property will be set to systemEventMessage.
    • from

      @SerializedName(value="from", alternate="From") @Expose @Nullable public ChatMessageFromIdentitySet from
      The From. Details of the sender of the chat message. Can only be set during migration.
    • importance

      @SerializedName(value="importance", alternate="Importance") @Expose @Nullable public ChatMessageImportance importance
      The Importance. The importance of the chat message. The possible values are: normal, high, urgent.
    • lastEditedDateTime

      @SerializedName(value="lastEditedDateTime", alternate="LastEditedDateTime") @Expose @Nullable public OffsetDateTime lastEditedDateTime
      The Last Edited Date Time. Read only. Timestamp when edits to the chat message were made. Triggers an 'Edited' flag in the Teams UI. If no edits are made the value is null.
    • lastModifiedDateTime

      @SerializedName(value="lastModifiedDateTime", alternate="LastModifiedDateTime") @Expose @Nullable public OffsetDateTime lastModifiedDateTime
      The Last Modified Date Time. Read only. Timestamp when the chat message is created (initial setting) or modified, including when a reaction is added or removed.
    • locale

      @SerializedName(value="locale", alternate="Locale") @Expose @Nullable public String locale
      The Locale. Locale of the chat message set by the client. Always set to en-us.
    • mentions

      @SerializedName(value="mentions", alternate="Mentions") @Expose @Nullable public List<ChatMessageMention> mentions
      The Mentions. List of entities mentioned in the chat message. Supported entities are: user, bot, team, and channel.
    • messageType

      @SerializedName(value="messageType", alternate="MessageType") @Expose @Nullable public ChatMessageType messageType
      The Message Type. The type of chat message. The possible values are: message, chatEvent, typing, unknownFutureValue, systemEventMessage. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value in this evolvable enum: systemEventMessage.
    • policyViolation

      @SerializedName(value="policyViolation", alternate="PolicyViolation") @Expose @Nullable public ChatMessagePolicyViolation policyViolation
      The Policy Violation. Defines the properties of a policy violation set by a data loss prevention (DLP) application.
    • reactions

      @SerializedName(value="reactions", alternate="Reactions") @Expose @Nullable public List<ChatMessageReaction> reactions
      The Reactions. Reactions for this chat message (for example, Like).
    • replyToId

      @SerializedName(value="replyToId", alternate="ReplyToId") @Expose @Nullable public String replyToId
      The Reply To Id. Read-only. ID of the parent chat message or root chat message of the thread. (Only applies to chat messages in channels, not chats.)
    • subject

      @SerializedName(value="subject", alternate="Subject") @Expose @Nullable public String subject
      The Subject. The subject of the chat message, in plaintext.
    • summary

      @SerializedName(value="summary", alternate="Summary") @Expose @Nullable public String summary
      The Summary. Summary text of the chat message that could be used for push notifications and summary views or fall back views. Only applies to channel chat messages, not chat messages in a chat.
    • webUrl

      @SerializedName(value="webUrl", alternate="WebUrl") @Expose @Nullable public String webUrl
      The Web Url. Read-only. Link to the message in Microsoft Teams.
    • hostedContents

      @SerializedName(value="hostedContents", alternate="HostedContents") @Expose @Nullable public ChatMessageHostedContentCollectionPage hostedContents
      The Hosted Contents. Content in a message hosted by Microsoft Teams - for example, images or code snippets.
    • replies

      @SerializedName(value="replies", alternate="Replies") @Expose @Nullable public ChatMessageCollectionPage replies
      The Replies. Replies for a specified message. Supports $expand for channel messages.
  • Constructor Details

    • ChatMessage

      public ChatMessage()
  • Method Details

    • setRawObject

      public void setRawObject(@Nonnull com.microsoft.graph.serializer.ISerializer serializer, @Nonnull com.google.gson.JsonObject json)
      Sets the raw JSON object
      Specified by:
      setRawObject in interface com.microsoft.graph.serializer.IJsonBackedObject
      Overrides:
      setRawObject in class Entity
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to