github.com/twilio/twilio-go@v1.20.1/rest/chat/v1/model_chat_v1_member.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  // ChatV1Member struct for ChatV1Member
    22  type ChatV1Member struct {
    23  	// The unique string that we created to identify the Member resource.
    24  	Sid *string `json:"sid,omitempty"`
    25  	// The SID of the [Account](https://www.twilio.com/docs/api/rest/account) that created the Member resource.
    26  	AccountSid *string `json:"account_sid,omitempty"`
    27  	// The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) for the member.
    28  	ChannelSid *string `json:"channel_sid,omitempty"`
    29  	// The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) the resource is associated with.
    30  	ServiceSid *string `json:"service_sid,omitempty"`
    31  	// The application-defined string that uniquely identifies the resource's [User](https://www.twilio.com/docs/api/chat/rest/users) within the [Service](https://www.twilio.com/docs/api/chat/rest/services). See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more info.
    32  	Identity *string `json:"identity,omitempty"`
    33  	// The date and time in GMT when the resource was created specified in [RFC 2822](http://www.ietf.org/rfc/rfc2822.txt) format.
    34  	DateCreated *time.Time `json:"date_created,omitempty"`
    35  	// The date and time in GMT when the resource was last updated specified in [RFC 2822](http://www.ietf.org/rfc/rfc2822.txt) format.
    36  	DateUpdated *time.Time `json:"date_updated,omitempty"`
    37  	// The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to the member.
    38  	RoleSid *string `json:"role_sid,omitempty"`
    39  	// 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.
    40  	LastConsumedMessageIndex *int `json:"last_consumed_message_index,omitempty"`
    41  	// The ISO 8601 timestamp string that represents the date-time of the last [Message](https://www.twilio.com/docs/api/chat/rest/messages) read event for the Member within the [Channel](https://www.twilio.com/docs/api/chat/rest/channels).
    42  	LastConsumptionTimestamp *time.Time `json:"last_consumption_timestamp,omitempty"`
    43  	// The absolute URL of the Member resource.
    44  	Url *string `json:"url,omitempty"`
    45  }