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
  • Constructor Details

    • ChatMessageInfo

      public ChatMessageInfo()
      Instantiates a new ChatMessageInfo 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

      @Nullable public ItemBody 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

      @Nullable public OffsetDateTime getCreatedDateTime()
      Gets the createdDateTime property value. Date time object representing the time at which message was created.
      Returns:
      a OffsetDateTime
    • getEventDetail

      @Nullable public EventMessageDetail 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 interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getFrom

      @Nullable public ChatMessageFromIdentitySet getFrom()
      Gets the from property value. Information about the sender of the message.
      Returns:
      a ChatMessageFromIdentitySet
    • getIsDeleted

      @Nullable public Boolean getIsDeleted()
      Gets the isDeleted property value. If set to true, the original message has been deleted.
      Returns:
      a Boolean
    • getMessageType

      @Nullable public ChatMessageType 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
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setBody

      public void setBody(@Nullable ItemBody value)
      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

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      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

      public void setEventDetail(@Nullable EventMessageDetail value)
      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

      public void setFrom(@Nullable ChatMessageFromIdentitySet value)
      Sets the from property value. Information about the sender of the message.
      Parameters:
      value - Value to set for the from property.
    • setIsDeleted

      public void setIsDeleted(@Nullable Boolean value)
      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

      public void setMessageType(@Nullable ChatMessageType value)
      Sets the messageType property value. The messageType property
      Parameters:
      value - Value to set for the messageType property.