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 classUser.WebhookEnabledType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserCreatorcreator(String pathChatServiceSid, String identity)static UserDeleterdeleter(String pathChatServiceSid, String pathSid)booleanequals(Object o)static UserFetcherfetcher(String pathChatServiceSid, 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()StringgetChatServiceSid()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetFriendlyName()StringgetIdentity()BooleangetIsNotifiable()BooleangetIsOnline()Map<String,String>getLinks()StringgetRoleSid()StringgetSid()URIgetUrl()inthashCode()static UserReaderreader(String pathChatServiceSid)static UserUpdaterupdater(String pathChatServiceSid, String pathSid)
-
-
-
Method Detail
-
creator
public static UserCreator creator(String pathChatServiceSid, String identity)
-
fetcher
public static UserFetcher fetcher(String pathChatServiceSid, String pathSid)
-
deleter
public static UserDeleter deleter(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()
-
-