github.com/twilio/twilio-go@v1.20.1/rest/chat/v3/model_chat_v3_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 import ( 18 "time" 19 ) 20 21 // ChatV3Channel struct for ChatV3Channel 22 type ChatV3Channel struct { 23 // The unique string that we created to identify the Channel resource. 24 Sid *string `json:"sid,omitempty"` 25 // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Channel resource. 26 AccountSid *string `json:"account_sid,omitempty"` 27 // The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) the Channel resource is associated with. 28 ServiceSid *string `json:"service_sid,omitempty"` 29 // The string that you assigned to describe the resource. 30 FriendlyName *string `json:"friendly_name,omitempty"` 31 // An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. 32 UniqueName *string `json:"unique_name,omitempty"` 33 // The JSON string that stores application-specific data. If attributes have not been set, `{}` is returned. 34 Attributes *string `json:"attributes,omitempty"` 35 Type *string `json:"type,omitempty"` 36 // The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. 37 DateCreated *time.Time `json:"date_created,omitempty"` 38 // The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. 39 DateUpdated *time.Time `json:"date_updated,omitempty"` 40 // The `identity` of the User that created the channel. If the Channel was created by using the API, the value is `system`. 41 CreatedBy *string `json:"created_by,omitempty"` 42 // The number of Members in the Channel. 43 MembersCount *int `json:"members_count,omitempty"` 44 // The number of Messages that have been passed in the Channel. 45 MessagesCount *int `json:"messages_count,omitempty"` 46 // The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this channel belongs to. 47 MessagingServiceSid *string `json:"messaging_service_sid,omitempty"` 48 // The absolute URL of the Channel resource. 49 Url *string `json:"url,omitempty"` 50 }