Class User
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.conversations.v1.service.User
-
- All Implemented Interfaces:
Serializable
public class User extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
User.WebhookEnabledType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserCreator
creator(String pathChatServiceSid, String identity)
static UserDeleter
deleter(String pathChatServiceSid, String pathSid)
boolean
equals(Object o)
static UserFetcher
fetcher(String pathChatServiceSid, String pathSid)
static User
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a User object using the provided ObjectMapper.static User
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a User object using the provided ObjectMapper.String
getAccountSid()
String
getAttributes()
String
getChatServiceSid()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
String
getFriendlyName()
String
getIdentity()
Boolean
getIsNotifiable()
Boolean
getIsOnline()
Map<String,String>
getLinks()
String
getRoleSid()
String
getSid()
URI
getUrl()
int
hashCode()
static UserReader
reader(String pathChatServiceSid)
static UserUpdater
updater(String pathChatServiceSid, String pathSid)
-
-
-
Method Detail
-
creator
public static UserCreator creator(String pathChatServiceSid, String identity)
-
deleter
public static UserDeleter deleter(String pathChatServiceSid, String pathSid)
-
fetcher
public static UserFetcher fetcher(String pathChatServiceSid, String pathSid)
-
reader
public static UserReader reader(String pathChatServiceSid)
-
updater
public static UserUpdater updater(String pathChatServiceSid, String pathSid)
-
fromJson
public static User fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a User object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- User object represented by the provided JSON
-
fromJson
public static User fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a User object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- User object represented by the provided JSON
-
getSid
public final String getSid()
-
getAccountSid
public final String getAccountSid()
-
getChatServiceSid
public final String getChatServiceSid()
-
getRoleSid
public final String getRoleSid()
-
getIdentity
public final String getIdentity()
-
getFriendlyName
public final String getFriendlyName()
-
getAttributes
public final String getAttributes()
-
getIsOnline
public final Boolean getIsOnline()
-
getIsNotifiable
public final Boolean getIsNotifiable()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getUrl
public final URI getUrl()
-
-