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 booleanequals(Object o)static UserInfoFetcherfetcher()static UserInfofromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a UserInfo object using the provided ObjectMapper.static UserInfofromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a UserInfo object using the provided ObjectMapper.StringgetEmail()StringgetFirstName()StringgetFriendlyName()StringgetLastName()URIgetUrl()StringgetUserSid()inthashCode()
-
-
-
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()
-
-