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.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class ChatMessage
extends Entity
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ChatMessagecreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the attachments property value.getBody()Gets the body property value.Gets the channelIdentity property value.Gets the chatId property value.Gets the createdDateTime property value.Gets the deletedDateTime property value.getEtag()Gets the etag property value.Gets the eventDetail property value.The deserialization information for the current modelgetFrom()Gets the from property value.Gets the hostedContents property value.Gets the importance property value.Gets the lastEditedDateTime property value.Gets the lastModifiedDateTime property value.Gets the locale property value.Gets the mentions property value.Gets the messageHistory property value.Gets the messageType property value.Gets the policyViolation property value.Gets the reactions property value.Gets the replies property value.Gets the replyToId property value.Gets the subject property value.Gets the summary property value.Gets the webUrl property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAttachments(List<ChatMessageAttachment> value) Sets the attachments property value.voidSets the body property value.voidSets the channelIdentity property value.voidSets the chatId property value.voidsetCreatedDateTime(OffsetDateTime value) Sets the createdDateTime property value.voidsetDeletedDateTime(OffsetDateTime value) Sets the deletedDateTime property value.voidSets the etag property value.voidsetEventDetail(EventMessageDetail value) Sets the eventDetail property value.voidSets the from property value.voidSets the hostedContents property value.voidSets the importance property value.voidSets the lastEditedDateTime property value.voidSets the lastModifiedDateTime property value.voidSets the locale property value.voidsetMentions(List<ChatMessageMention> value) Sets the mentions property value.voidSets the messageHistory property value.voidsetMessageType(ChatMessageType value) Sets the messageType property value.voidSets the policyViolation property value.voidsetReactions(List<ChatMessageReaction> value) Sets the reactions property value.voidsetReplies(List<ChatMessage> value) Sets the replies property value.voidsetReplyToId(String value) Sets the replyToId property value.voidsetSubject(String value) Sets the subject property value.voidsetSummary(String value) Sets the summary property value.voidSets the webUrl property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
ChatMessage
public ChatMessage()Instantiates a newChatMessageand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static ChatMessage createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode- The parse node to use to read the discriminator value and create the object- Returns:
- a
ChatMessage
-
getAttachments
Gets the attachments property value. References to attached objects like files, tabs, meetings etc.- Returns:
- a
List<ChatMessageAttachment>
-
getBody
Gets the body property value. The body property- Returns:
- a
ItemBody
-
getChannelIdentity
Gets the channelIdentity property value. If the message was sent in a channel, represents identity of the channel.- Returns:
- a
ChannelIdentity
-
getChatId
Gets the chatId property value. If the message was sent in a chat, represents the identity of the chat.- Returns:
- a
String
-
getCreatedDateTime
Gets the createdDateTime property value. Timestamp of when the chat message was created.- Returns:
- a
OffsetDateTime
-
getDeletedDateTime
Gets the deletedDateTime property value. Read only. Timestamp at which the chat message was deleted, or null if not deleted.- Returns:
- a
OffsetDateTime
-
getEtag
Gets the etag property value. Read-only. Version number of the chat message.- Returns:
- a
String
-
getEventDetail
Gets the eventDetail property value. 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.- Returns:
- a
EventMessageDetail
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classEntity- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getFrom
Gets the from property value. Details of the sender of the chat message. Can only be set during migration.- Returns:
- a
ChatMessageFromIdentitySet
-
getHostedContents
Gets the hostedContents property value. Content in a message hosted by Microsoft Teams - for example, images or code snippets.- Returns:
- a
List<ChatMessageHostedContent>
-
getImportance
Gets the importance property value. The importance property- Returns:
- a
ChatMessageImportance
-
getLastEditedDateTime
Gets the lastEditedDateTime property value. 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.- Returns:
- a
OffsetDateTime
-
getLastModifiedDateTime
Gets the lastModifiedDateTime property value. Read only. Timestamp when the chat message is created (initial setting) or modified, including when a reaction is added or removed.- Returns:
- a
OffsetDateTime
-
getLocale
Gets the locale property value. Locale of the chat message set by the client. Always set to en-us.- Returns:
- a
String
-
getMentions
Gets the mentions property value. List of entities mentioned in the chat message. Supported entities are: user, bot, team, channel, chat, and tag.- Returns:
- a
List<ChatMessageMention>
-
getMessageHistory
Gets the messageHistory property value. List of activity history of a message item, including modification time and actions, such as reactionAdded, reactionRemoved, or reaction changes, on the message.- Returns:
- a
List<ChatMessageHistoryItem>
-
getMessageType
Gets the messageType property value. The messageType property- Returns:
- a
ChatMessageType
-
getPolicyViolation
Gets the policyViolation property value. Defines the properties of a policy violation set by a data loss prevention (DLP) application.- Returns:
- a
ChatMessagePolicyViolation
-
getReactions
Gets the reactions property value. Reactions for this chat message (for example, Like).- Returns:
- a
List<ChatMessageReaction>
-
getReplies
Gets the replies property value. Replies for a specified message. Supports $expand for channel messages.- Returns:
- a
List<ChatMessage>
-
getReplyToId
Gets the replyToId property value. Read-only. ID of the parent chat message or root chat message of the thread. (Only applies to chat messages in channels, not chats.)- Returns:
- a
String
-
getSubject
Gets the subject property value. The subject of the chat message, in plaintext.- Returns:
- a
String
-
getSummary
Gets the summary property value. 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.- Returns:
- a
String
-
getWebUrl
Gets the webUrl property value. Read-only. Link to the message in Microsoft Teams.- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setAttachments
Sets the attachments property value. References to attached objects like files, tabs, meetings etc.- Parameters:
value- Value to set for the attachments property.
-
setBody
Sets the body property value. The body property- Parameters:
value- Value to set for the body property.
-
setChannelIdentity
Sets the channelIdentity property value. If the message was sent in a channel, represents identity of the channel.- Parameters:
value- Value to set for the channelIdentity property.
-
setChatId
Sets the chatId property value. If the message was sent in a chat, represents the identity of the chat.- Parameters:
value- Value to set for the chatId property.
-
setCreatedDateTime
Sets the createdDateTime property value. Timestamp of when the chat message was created.- Parameters:
value- Value to set for the createdDateTime property.
-
setDeletedDateTime
Sets the deletedDateTime property value. Read only. Timestamp at which the chat message was deleted, or null if not deleted.- Parameters:
value- Value to set for the deletedDateTime property.
-
setEtag
Sets the etag property value. Read-only. Version number of the chat message.- Parameters:
value- Value to set for the etag property.
-
setEventDetail
Sets the eventDetail property value. 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.- Parameters:
value- Value to set for the eventDetail property.
-
setFrom
Sets the from property value. Details of the sender of the chat message. Can only be set during migration.- Parameters:
value- Value to set for the from property.
-
setHostedContents
Sets the hostedContents property value. Content in a message hosted by Microsoft Teams - for example, images or code snippets.- Parameters:
value- Value to set for the hostedContents property.
-
setImportance
Sets the importance property value. The importance property- Parameters:
value- Value to set for the importance property.
-
setLastEditedDateTime
Sets the lastEditedDateTime property value. 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.- Parameters:
value- Value to set for the lastEditedDateTime property.
-
setLastModifiedDateTime
Sets the lastModifiedDateTime property value. Read only. Timestamp when the chat message is created (initial setting) or modified, including when a reaction is added or removed.- Parameters:
value- Value to set for the lastModifiedDateTime property.
-
setLocale
Sets the locale property value. Locale of the chat message set by the client. Always set to en-us.- Parameters:
value- Value to set for the locale property.
-
setMentions
Sets the mentions property value. List of entities mentioned in the chat message. Supported entities are: user, bot, team, channel, chat, and tag.- Parameters:
value- Value to set for the mentions property.
-
setMessageHistory
Sets the messageHistory property value. List of activity history of a message item, including modification time and actions, such as reactionAdded, reactionRemoved, or reaction changes, on the message.- Parameters:
value- Value to set for the messageHistory property.
-
setMessageType
Sets the messageType property value. The messageType property- Parameters:
value- Value to set for the messageType property.
-
setPolicyViolation
Sets the policyViolation property value. Defines the properties of a policy violation set by a data loss prevention (DLP) application.- Parameters:
value- Value to set for the policyViolation property.
-
setReactions
Sets the reactions property value. Reactions for this chat message (for example, Like).- Parameters:
value- Value to set for the reactions property.
-
setReplies
Sets the replies property value. Replies for a specified message. Supports $expand for channel messages.- Parameters:
value- Value to set for the replies property.
-
setReplyToId
Sets the replyToId property value. Read-only. ID of the parent chat message or root chat message of the thread. (Only applies to chat messages in channels, not chats.)- Parameters:
value- Value to set for the replyToId property.
-
setSubject
Sets the subject property value. The subject of the chat message, in plaintext.- Parameters:
value- Value to set for the subject property.
-
setSummary
Sets the summary property value. 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.- Parameters:
value- Value to set for the summary property.
-
setWebUrl
Sets the webUrl property value. Read-only. Link to the message in Microsoft Teams.- Parameters:
value- Value to set for the webUrl property.
-