Class ChatMessageAttachment

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

public class ChatMessageAttachment extends Object implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the Chat Message Attachment.
  • Field Details

    • oDataType

      @SerializedName("@odata.type") @Expose @Nullable public String oDataType
      the OData type of the object as returned by the service
    • content

      @SerializedName(value="content", alternate="Content") @Expose @Nullable public String content
      The Content. The content of the attachment. If the attachment is a rich card, set the property to the rich card object. This property and contentUrl are mutually exclusive.
    • contentType

      @SerializedName(value="contentType", alternate="ContentType") @Expose @Nullable public String contentType
      The Content Type. The media type of the content attachment. It can have the following values: reference: Attachment is a link to another file. Populate the contentURL with the link to the object.Any contentTypes supported by the Bot Framework's Attachment objectapplication/vnd.microsoft.card.codesnippet: A code snippet. application/vnd.microsoft.card.announcement: An announcement header.
    • contentUrl

      @SerializedName(value="contentUrl", alternate="ContentUrl") @Expose @Nullable public String contentUrl
      The Content Url. URL for the content of the attachment. Supported protocols: http, https, file and data.
    • id

      @SerializedName(value="id", alternate="Id") @Expose @Nullable public String id
      The Id. Read-only. Unique id of the attachment.
    • name

      @SerializedName(value="name", alternate="Name") @Expose @Nullable public String name
      The Name. Name of the attachment.
    • thumbnailUrl

      @SerializedName(value="thumbnailUrl", alternate="ThumbnailUrl") @Expose @Nullable public String thumbnailUrl
      The Thumbnail Url. URL to a thumbnail image that the channel can use if it supports using an alternative, smaller form of content or contentUrl. For example, if you set contentType to application/word and set contentUrl to the location of the Word document, you might include a thumbnail image that represents the document. The channel could display the thumbnail image instead of the document. When the user clicks the image, the channel would open the document.
  • Constructor Details

    • ChatMessageAttachment

      public ChatMessageAttachment()
  • Method Details

    • additionalDataManager

      @Nonnull public final com.microsoft.graph.serializer.AdditionalDataManager additionalDataManager()
      Specified by:
      additionalDataManager in interface com.microsoft.graph.serializer.IJsonBackedObject
    • 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
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to