Package com.microsoft.graph.models
Class ChatMessage
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.ChatMessage
- All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject
The class for the Chat Message.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe Attachments.The Body.The Channel Identity.The Chat Id.The Created Date Time.The Deleted Date Time.The Etag.The Event Detail.The From.The Hosted Contents.The Importance.The Last Edited Date Time.The Last Modified Date Time.The Locale.The Mentions.The Message Type.The Policy Violation.The Reactions.The Replies.The Reply To Id.The Subject.The Summary.The Web Url. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setRawObject
(com.microsoft.graph.serializer.ISerializer serializer, com.google.gson.JsonObject json) Sets the raw JSON objectMethods inherited from class com.microsoft.graph.models.Entity
additionalDataManager
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.microsoft.graph.serializer.IJsonBackedObject
additionalDataManager
-
Field Details
-
attachments
@SerializedName(value="attachments", alternate="Attachments") @Expose @Nullable public List<ChatMessageAttachment> attachmentsThe Attachments. References to attached objects like files, tabs, meetings etc. -
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 channelIdentityThe Channel Identity. If the message was sent in a channel, represents identity of the channel. -
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 createdDateTimeThe Created Date Time. Timestamp of when the chat message was created. -
deletedDateTime
@SerializedName(value="deletedDateTime", alternate="DeletedDateTime") @Expose @Nullable public OffsetDateTime deletedDateTimeThe Deleted Date Time. Read only. Timestamp at which the chat message was deleted, or null if not deleted. -
etag
The Etag. Read-only. Version number of the chat message. -
eventDetail
@SerializedName(value="eventDetail", alternate="EventDetail") @Expose @Nullable public EventMessageDetail eventDetailThe 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 fromThe 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 importanceThe Importance. The importance of the chat message. The possible values are: normal, high, urgent. -
lastEditedDateTime
@SerializedName(value="lastEditedDateTime", alternate="LastEditedDateTime") @Expose @Nullable public OffsetDateTime lastEditedDateTimeThe 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 lastModifiedDateTimeThe 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
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> mentionsThe 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 messageTypeThe 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 policyViolationThe 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> reactionsThe Reactions. Reactions for this chat message (for example, Like). -
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
The Subject. The subject of the chat message, in plaintext. -
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
The Web Url. Read-only. Link to the message in Microsoft Teams. -
hostedContents
@SerializedName(value="hostedContents", alternate="HostedContents") @Expose @Nullable public ChatMessageHostedContentCollectionPage hostedContentsThe 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 repliesThe 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 interfacecom.microsoft.graph.serializer.IJsonBackedObject
- Overrides:
setRawObject
in classEntity
- Parameters:
serializer
- the serializerjson
- the JSON object to set this object to
-