github.com/twilio/twilio-go@v1.20.1/rest/conversations/v1/model_conversations_v1_conversation_message.go (about)

     1  /*
     2   * This code was generated by
     3   * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
     4   *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
     5   *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
     6   *
     7   * Twilio - Conversations
     8   * This is the public Twilio REST API.
     9   *
    10   * NOTE: This class is auto generated by OpenAPI Generator.
    11   * https://openapi-generator.tech
    12   * Do not edit the class manually.
    13   */
    14  
    15  package openapi
    16  
    17  import (
    18  	"time"
    19  )
    20  
    21  // ConversationsV1ConversationMessage struct for ConversationsV1ConversationMessage
    22  type ConversationsV1ConversationMessage struct {
    23  	// The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this message.
    24  	AccountSid *string `json:"account_sid,omitempty"`
    25  	// The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message.
    26  	ConversationSid *string `json:"conversation_sid,omitempty"`
    27  	// A 34 character string that uniquely identifies this resource.
    28  	Sid *string `json:"sid,omitempty"`
    29  	// The index of the message within the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource).  Indices may skip numbers, but will always be in order of when the message was received.
    30  	Index *int `json:"index,omitempty"`
    31  	// The channel specific identifier of the message's author. Defaults to `system`.
    32  	Author *string `json:"author,omitempty"`
    33  	// The content of the message, can be up to 1,600 characters long.
    34  	Body *string `json:"body,omitempty"`
    35  	// An array of objects that describe the Message's media, if the message contains media. Each object contains these fields: `content_type` with the MIME type of the media, `filename` with the name of the media, `sid` with the SID of the Media resource, and `size` with the media object's file size in bytes. If the Message has no media, this value is `null`.
    36  	Media *[]interface{} `json:"media,omitempty"`
    37  	// A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \"{}\" will be returned.
    38  	Attributes *string `json:"attributes,omitempty"`
    39  	// The unique ID of messages's author participant. Null in case of `system` sent message.
    40  	ParticipantSid *string `json:"participant_sid,omitempty"`
    41  	// The date that this resource was created.
    42  	DateCreated *time.Time `json:"date_created,omitempty"`
    43  	// The date that this resource was last updated. `null` if the message has not been edited.
    44  	DateUpdated *time.Time `json:"date_updated,omitempty"`
    45  	// An absolute API resource API URL for this message.
    46  	Url *string `json:"url,omitempty"`
    47  	// An object that contains the summary of delivery statuses for the message to non-chat participants.
    48  	Delivery *interface{} `json:"delivery,omitempty"`
    49  	// Contains an absolute API resource URL to access the delivery & read receipts of this message.
    50  	Links *map[string]interface{} `json:"links,omitempty"`
    51  	// The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content) template.
    52  	ContentSid *string `json:"content_sid,omitempty"`
    53  }