github.com/twilio/twilio-go@v1.20.1/rest/conversations/v1/model_conversations_v1_service_user_conversation.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  // ConversationsV1ServiceUserConversation struct for ConversationsV1ServiceUserConversation
    22  type ConversationsV1ServiceUserConversation struct {
    23  	// The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this conversation.
    24  	AccountSid *string `json:"account_sid,omitempty"`
    25  	// The unique ID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) this conversation belongs to.
    26  	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
    27  	// The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this User Conversation.
    28  	ConversationSid *string `json:"conversation_sid,omitempty"`
    29  	// The number of unread Messages in the Conversation for the Participant.
    30  	UnreadMessagesCount *int `json:"unread_messages_count,omitempty"`
    31  	// The index of the last Message in the Conversation that the Participant has read.
    32  	LastReadMessageIndex *int `json:"last_read_message_index,omitempty"`
    33  	// The unique ID of the [participant](https://www.twilio.com/docs/conversations/api/conversation-participant-resource) the user conversation belongs to.
    34  	ParticipantSid *string `json:"participant_sid,omitempty"`
    35  	// The unique string that identifies the [User resource](https://www.twilio.com/docs/conversations/api/user-resource).
    36  	UserSid *string `json:"user_sid,omitempty"`
    37  	// The human-readable name of this conversation, limited to 256 characters. Optional.
    38  	FriendlyName      *string `json:"friendly_name,omitempty"`
    39  	ConversationState *string `json:"conversation_state,omitempty"`
    40  	// Timer date values representing state update for this conversation.
    41  	Timers *interface{} `json:"timers,omitempty"`
    42  	// An optional 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.
    43  	Attributes *string `json:"attributes,omitempty"`
    44  	// The date that this conversation was created, given in ISO 8601 format.
    45  	DateCreated *time.Time `json:"date_created,omitempty"`
    46  	// The date that this conversation was last updated, given in ISO 8601 format.
    47  	DateUpdated *time.Time `json:"date_updated,omitempty"`
    48  	// Identity of the creator of this Conversation.
    49  	CreatedBy         *string `json:"created_by,omitempty"`
    50  	NotificationLevel *string `json:"notification_level,omitempty"`
    51  	// An application-defined string that uniquely identifies the Conversation resource. It can be used to address the resource in place of the resource's `conversation_sid` in the URL.
    52  	UniqueName *string `json:"unique_name,omitempty"`
    53  	Url        *string `json:"url,omitempty"`
    54  	// Contains absolute URLs to access the [participant](https://www.twilio.com/docs/conversations/api/conversation-participant-resource) and [conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) of this conversation.
    55  	Links *map[string]interface{} `json:"links,omitempty"`
    56  }