github.com/twilio/twilio-go@v1.20.1/rest/chat/v2/model_chat_v2_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 // ChatV2UserChannel struct for ChatV2UserChannel 18 type ChatV2UserChannel struct { 19 // The SID of the [Account](https://www.twilio.com/docs/iam/api/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/chat/rest/service-resource) the User Channel resource is associated with. 22 ServiceSid *string `json:"service_sid,omitempty"` 23 // The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the User Channel resource belongs to. 24 ChannelSid *string `json:"channel_sid,omitempty"` 25 // The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) the User Channel belongs to. 26 UserSid *string `json:"user_sid,omitempty"` 27 // The SID of a [Member](https://www.twilio.com/docs/chat/rest/member-resource) that represents the User on the Channel. 28 MemberSid *string `json:"member_sid,omitempty"` 29 Status *string `json:"status,omitempty"` 30 // The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) in the [Channel](https://www.twilio.com/docs/chat/channels) that the Member has read. 31 LastConsumedMessageIndex *int `json:"last_consumed_message_index,omitempty"` 32 // 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](https://www.twilio.com/docs/chat/consumption-horizon) to learn how to mark messages as consumed. 33 UnreadMessagesCount *int `json:"unread_messages_count,omitempty"` 34 // The absolute URLs of the [Members](https://www.twilio.com/docs/chat/rest/member-resource), [Messages](https://www.twilio.com/docs/chat/rest/message-resource) , [Invites](https://www.twilio.com/docs/chat/rest/invite-resource) and, if it exists, the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) for the Channel. 35 Links *map[string]interface{} `json:"links,omitempty"` 36 // The absolute URL of the User Channel resource. 37 Url *string `json:"url,omitempty"` 38 NotificationLevel *string `json:"notification_level,omitempty"` 39 }