/
model_conversations_v1_conversation_participant.go
47 lines (44 loc) · 2.81 KB
/
model_conversations_v1_conversation_participant.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* This code was generated by
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
*
* Twilio - Conversations
* This is the public Twilio REST API.
*
* NOTE: This class is auto generated by OpenAPI Generator.
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package openapi
import (
"time"
)
// ConversationsV1ConversationParticipant struct for ConversationsV1ConversationParticipant
type ConversationsV1ConversationParticipant struct {
// The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this participant.
AccountSid *string `json:"account_sid,omitempty"`
// The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant.
ConversationSid *string `json:"conversation_sid,omitempty"`
// A 34 character string that uniquely identifies this resource.
Sid *string `json:"sid,omitempty"`
// 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 Conversations SDK to communicate. Limited to 256 characters.
Identity *string `json:"identity,omitempty"`
// 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.
Attributes *string `json:"attributes,omitempty"`
// Information about how this participant exchanges messages with the conversation. A JSON parameter consisting of type and address fields of the participant.
MessagingBinding *interface{} `json:"messaging_binding,omitempty"`
// The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant.
RoleSid *string `json:"role_sid,omitempty"`
// The date that this resource was created.
DateCreated *time.Time `json:"date_created,omitempty"`
// The date that this resource was last updated.
DateUpdated *time.Time `json:"date_updated,omitempty"`
// An absolute API resource URL for this participant.
Url *string `json:"url,omitempty"`
// Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant.
LastReadMessageIndex *int `json:"last_read_message_index,omitempty"`
// Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant.
LastReadTimestamp *string `json:"last_read_timestamp,omitempty"`
}