public class User extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
User.StateType |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static UserFetcher |
fetcher(String pathSid)
Create a UserFetcher to execute fetch.
|
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 |
getAvatar()
Returns The avatar URL which will be shown in Frontline application.
|
String |
getFriendlyName()
Returns The string that you assigned to describe the User.
|
String |
getIdentity()
Returns The string that identifies the resource's User.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
User.StateType |
getState()
Returns Current state of this user.
|
URI |
getUrl()
Returns An absolute URL for this user..
|
int |
hashCode() |
static UserUpdater |
updater(String pathSid)
Create a UserUpdater to execute update.
|
public static UserFetcher fetcher(String pathSid)
pathSid
- The SID of the User resource to fetchpublic static UserUpdater updater(String pathSid)
pathSid
- The SID of the User resource to updatepublic static User fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static User fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
public final String getIdentity()
public final String getFriendlyName()
public final String getAvatar()
public final User.StateType getState()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.