Package com.twilio.rest.chat.v1.service
Class User
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.chat.v1.service.User
-
- All Implemented Interfaces:
Serializable
public class User extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserCreator
creator(String pathServiceSid, String identity)
static UserDeleter
deleter(String pathServiceSid, String pathSid)
boolean
equals(Object o)
static UserFetcher
fetcher(String pathServiceSid, 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()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
String
getFriendlyName()
String
getIdentity()
Boolean
getIsNotifiable()
Boolean
getIsOnline()
Integer
getJoinedChannelsCount()
Map<String,String>
getLinks()
String
getRoleSid()
String
getServiceSid()
String
getSid()
URI
getUrl()
int
hashCode()
static UserReader
reader(String pathServiceSid)
static UserUpdater
updater(String pathServiceSid, String pathSid)
-
-
-
Method Detail
-
creator
public static UserCreator creator(String pathServiceSid, String identity)
-
deleter
public static UserDeleter deleter(String pathServiceSid, String pathSid)
-
fetcher
public static UserFetcher fetcher(String pathServiceSid, String pathSid)
-
reader
public static UserReader reader(String pathServiceSid)
-
updater
public static UserUpdater updater(String pathServiceSid, 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()
-
getServiceSid
public final String getServiceSid()
-
getAttributes
public final String getAttributes()
-
getFriendlyName
public final String getFriendlyName()
-
getRoleSid
public final String getRoleSid()
-
getIdentity
public final String getIdentity()
-
getIsOnline
public final Boolean getIsOnline()
-
getIsNotifiable
public final Boolean getIsNotifiable()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getJoinedChannelsCount
public final Integer getJoinedChannelsCount()
-
getUrl
public final URI getUrl()
-
-