/
model_conversations_v1_user.go
48 lines (45 loc) · 3.3 KB
/
model_conversations_v1_user.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
48
/*
* 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"
)
// ConversationsV1User struct for ConversationsV1User
type ConversationsV1User struct {
// The unique string that we created to identify the User resource.
Sid *string `json:"sid,omitempty"`
// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the User resource.
AccountSid *string `json:"account_sid,omitempty"`
// The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the User resource is associated with.
ChatServiceSid *string `json:"chat_service_sid,omitempty"`
// The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) assigned to the user.
RoleSid *string `json:"role_sid,omitempty"`
// The application-defined string that uniquely identifies the resource's User within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). This value is often a username or an email address, and is case-sensitive.
Identity *string `json:"identity,omitempty"`
// The string that you assigned to describe the resource.
FriendlyName *string `json:"friendly_name,omitempty"`
// The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned.
Attributes *string `json:"attributes,omitempty"`
// Whether the User is actively connected to this Conversations Service and online. This value is only returned by Fetch actions that return a single resource and `null` is always returned by a Read action. This value is `null` if the Service's `reachability_enabled` is `false`, if the User has never been online for this Conversations Service, even if the Service's `reachability_enabled` is `true`.
IsOnline *bool `json:"is_online,omitempty"`
// Whether the User has a potentially valid Push Notification registration (APN or GCM) for this Conversations Service. If at least one registration exists, `true`; otherwise `false`. This value is only returned by Fetch actions that return a single resource and `null` is always returned by a Read action. This value is `null` if the Service's `reachability_enabled` is `false`, and if the User has never had a notification registration, even if the Service's `reachability_enabled` is `true`.
IsNotifiable *bool `json:"is_notifiable,omitempty"`
// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
DateCreated *time.Time `json:"date_created,omitempty"`
// The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
DateUpdated *time.Time `json:"date_updated,omitempty"`
// An absolute API resource URL for this user.
Url *string `json:"url,omitempty"`
Links *map[string]interface{} `json:"links,omitempty"`
}