github.com/twilio/twilio-go@v1.20.1/rest/chat/v1/model_chat_v1_user_channel.go (about) 1 /* 2 * This code was generated by 3 * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ 4 * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ 5 * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ 6 * 7 * Twilio - Chat 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 // ChatV1UserChannel struct for ChatV1UserChannel 18 type ChatV1UserChannel struct { 19 // The SID of the [Account](https://www.twilio.com/docs/api/rest/account) that created the User Channel resource. 20 AccountSid *string `json:"account_sid,omitempty"` 21 // The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) the resource is associated with. 22 ServiceSid *string `json:"service_sid,omitempty"` 23 // The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource belongs to. 24 ChannelSid *string `json:"channel_sid,omitempty"` 25 // The SID of a [Member](https://www.twilio.com/docs/api/chat/rest/members) that represents the User on the Channel. 26 MemberSid *string `json:"member_sid,omitempty"` 27 Status *string `json:"status,omitempty"` 28 // The index of the last [Message](https://www.twilio.com/docs/api/chat/rest/messages) in the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) that the Member has read. 29 LastConsumedMessageIndex *int `json:"last_consumed_message_index,omitempty"` 30 // The number of unread Messages in the Channel for the User. Note that retrieving messages on a client endpoint does not mean that messages are consumed or read. See [Consumption Horizon feature](/docs/api/chat/guides/consumption-horizon) to learn how to mark messages as consumed. 31 UnreadMessagesCount *int `json:"unread_messages_count,omitempty"` 32 // The absolute URLs of the [Members](https://www.twilio.com/docs/chat/api/members), [Messages](https://www.twilio.com/docs/chat/api/messages) , [Invites](https://www.twilio.com/docs/chat/api/invites) and, if it exists, the last [Message](https://www.twilio.com/docs/chat/api/messages) for the Channel. 33 Links *map[string]interface{} `json:"links,omitempty"` 34 }