Package com.twilio.rest.oauth.v1
Class UserInfo
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.oauth.v1.UserInfo
-
- All Implemented Interfaces:
Serializable
public class UserInfo extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static UserInfoFetcher
fetcher()
static UserInfo
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a UserInfo object using the provided ObjectMapper.static UserInfo
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a UserInfo object using the provided ObjectMapper.String
getEmail()
String
getFirstName()
String
getFriendlyName()
String
getLastName()
URI
getUrl()
String
getUserSid()
int
hashCode()
-
-
-
Method Detail
-
fetcher
public static UserInfoFetcher fetcher()
-
fromJson
public static UserInfo fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a UserInfo object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- UserInfo object represented by the provided JSON
-
fromJson
public static UserInfo fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a UserInfo object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- UserInfo object represented by the provided JSON
-
getUserSid
public final String getUserSid()
-
getFirstName
public final String getFirstName()
-
getLastName
public final String getLastName()
-
getFriendlyName
public final String getFriendlyName()
-
getEmail
public final String getEmail()
-
getUrl
public final URI getUrl()
-
-