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 UserCreatorcreator(String pathServiceSid, String identity)static UserDeleterdeleter(String pathServiceSid, String pathSid)booleanequals(Object o)static UserFetcherfetcher(String pathServiceSid, String pathSid)static UserfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a User object using the provided ObjectMapper.static UserfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a User object using the provided ObjectMapper.StringgetAccountSid()StringgetAttributes()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetFriendlyName()StringgetIdentity()BooleangetIsNotifiable()BooleangetIsOnline()IntegergetJoinedChannelsCount()Map<String,String>getLinks()StringgetRoleSid()StringgetServiceSid()StringgetSid()URIgetUrl()inthashCode()static UserReaderreader(String pathServiceSid)static UserUpdaterupdater(String pathServiceSid, String pathSid)
-
-
-
Method Detail
-
creator
public static UserCreator creator(String pathServiceSid, String identity)
-
fetcher
public static UserFetcher fetcher(String pathServiceSid, String pathSid)
-
deleter
public static UserDeleter deleter(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()
-
-