github.com/twilio/twilio-go@v1.20.1/rest/conversations/v1/model_conversations_v1_service_conversation_participant.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 // ConversationsV1ServiceConversationParticipant struct for ConversationsV1ServiceConversationParticipant 22 type ConversationsV1ServiceConversationParticipant struct { 23 // The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this participant. 24 AccountSid *string `json:"account_sid,omitempty"` 25 // The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. 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 participant. 28 ConversationSid *string `json:"conversation_sid,omitempty"` 29 // A 34 character string that uniquely identifies this resource. 30 Sid *string `json:"sid,omitempty"` 31 // A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the [Conversation SDK](https://www.twilio.com/docs/conversations/sdk-overview) to communicate. Limited to 256 characters. 32 Identity *string `json:"identity,omitempty"` 33 // 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. 34 Attributes *string `json:"attributes,omitempty"` 35 // Information about how this participant exchanges messages with the conversation. A JSON parameter consisting of type and address fields of the participant. 36 MessagingBinding *interface{} `json:"messaging_binding,omitempty"` 37 // The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. 38 RoleSid *string `json:"role_sid,omitempty"` 39 // The date on which this resource was created. 40 DateCreated *time.Time `json:"date_created,omitempty"` 41 // The date on which this resource was last updated. 42 DateUpdated *time.Time `json:"date_updated,omitempty"` 43 // An absolute API resource URL for this participant. 44 Url *string `json:"url,omitempty"` 45 // Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. 46 LastReadMessageIndex *int `json:"last_read_message_index,omitempty"` 47 // Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. 48 LastReadTimestamp *string `json:"last_read_timestamp,omitempty"` 49 }