Package com.microsoft.graph.models
Class ChatMessageInfo
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.ChatMessageInfo
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class ChatMessageInfo
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 ChatMessageInfo
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valuegetBody()
Gets the body property value.Gets the createdDateTime property value.Gets the eventDetail property value.The deserialization information for the current modelgetFrom()
Gets the from property value.Gets the isDeleted property value.Gets the messageType property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
Sets the body property value.void
setCreatedDateTime
(OffsetDateTime value) Sets the createdDateTime property value.void
setEventDetail
(EventMessageDetail value) Sets the eventDetail property value.void
Sets the from property value.void
setIsDeleted
(Boolean value) Sets the isDeleted property value.void
setMessageType
(ChatMessageType value) Sets the messageType property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
ChatMessageInfo
public ChatMessageInfo()Instantiates a newChatMessageInfo
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static ChatMessageInfo 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
ChatMessageInfo
-
getBody
Gets the body property value. Body of the chatMessage. This will still contain markers for @mentions and attachments even though the object doesn't return @mentions and attachments.- Returns:
- a
ItemBody
-
getCreatedDateTime
Gets the createdDateTime property value. Date time object representing the time at which message was created.- Returns:
- a
OffsetDateTime
-
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, members were added, and so on. For event messages, the messageType property is 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:
getFieldDeserializers
in interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getFrom
Gets the from property value. Information about the sender of the message.- Returns:
- a
ChatMessageFromIdentitySet
-
getIsDeleted
Gets the isDeleted property value. If set to true, the original message has been deleted.- Returns:
- a
Boolean
-
getMessageType
Gets the messageType property value. The messageType property- Returns:
- a
ChatMessageType
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setBody
Sets the body property value. Body of the chatMessage. This will still contain markers for @mentions and attachments even though the object doesn't return @mentions and attachments.- Parameters:
value
- Value to set for the body property.
-
setCreatedDateTime
Sets the createdDateTime property value. Date time object representing the time at which message was created.- Parameters:
value
- Value to set for the createdDateTime 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, members were added, and so on. For event messages, the messageType property is set to systemEventMessage.- Parameters:
value
- Value to set for the eventDetail property.
-
setFrom
Sets the from property value. Information about the sender of the message.- Parameters:
value
- Value to set for the from property.
-
setIsDeleted
Sets the isDeleted property value. If set to true, the original message has been deleted.- Parameters:
value
- Value to set for the isDeleted property.
-
setMessageType
Sets the messageType property value. The messageType property- Parameters:
value
- Value to set for the messageType property.
-