facebook4j.internal.json
Class UserJSONImpl
java.lang.Object
facebook4j.internal.json.UserJSONImpl
- All Implemented Interfaces:
- User, java.io.Serializable, java.lang.Comparable<User>
- Direct Known Subclasses:
- FamilyJSONImpl, FriendJSONImpl, GroupMemberJSONImpl, SubscribedtoJSONImpl, SubscriberJSONImpl
class UserJSONImpl
- extends java.lang.Object
- implements User, java.lang.Comparable<User>, java.io.Serializable
A data class representing Basic user information element
- Author:
- Ryuji Yamashita - roundrop at gmail.com
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
id
private java.lang.String id
name
private java.lang.String name
firstName
private java.lang.String firstName
middleName
private java.lang.String middleName
lastName
private java.lang.String lastName
gender
private java.lang.String gender
locale
private java.util.Locale locale
languages
private java.util.List<IdNameEntity> languages
link
private java.net.URL link
username
private java.lang.String username
thirdPartyId
private java.lang.String thirdPartyId
installed
private java.lang.Boolean installed
timezone
private java.lang.Double timezone
updatedTime
private java.util.Date updatedTime
verified
private java.lang.Boolean verified
bio
private java.lang.String bio
birthday
private java.lang.String birthday
cover
private Cover cover
education
private java.util.List<User.Education> education
email
private java.lang.String email
hometown
private IdNameEntity hometown
interestedIn
private java.util.List<java.lang.String> interestedIn
location
private IdNameEntity location
political
private java.lang.String political
favoriteAthletes
private java.util.List<IdNameEntity> favoriteAthletes
favoriteTeams
private java.util.List<IdNameEntity> favoriteTeams
picture
private Picture picture
quotes
private java.lang.String quotes
relationshipStatus
private java.lang.String relationshipStatus
religion
private java.lang.String religion
significantOther
private IdNameEntity significantOther
videoUploadLimits
private User.VideoUploadLimits videoUploadLimits
website
private java.net.URL website
work
private java.util.List<User.Work> work
UserJSONImpl
UserJSONImpl(HttpResponse res,
Configuration conf)
throws FacebookException
- Throws:
FacebookException
UserJSONImpl
UserJSONImpl(JSONObject json)
throws FacebookException
- Throws:
FacebookException
init
private void init(JSONObject json)
throws FacebookException
- Throws:
FacebookException
getId
public java.lang.String getId()
- Specified by:
getId in interface User
getName
public java.lang.String getName()
- Specified by:
getName in interface User
getFirstName
public java.lang.String getFirstName()
- Specified by:
getFirstName in interface User
getMiddleName
public java.lang.String getMiddleName()
- Specified by:
getMiddleName in interface User
getLastName
public java.lang.String getLastName()
- Specified by:
getLastName in interface User
getGender
public java.lang.String getGender()
- Specified by:
getGender in interface User
getLocale
public java.util.Locale getLocale()
- Specified by:
getLocale in interface User
getLanguages
public java.util.List<IdNameEntity> getLanguages()
- Specified by:
getLanguages in interface User
getLink
public java.net.URL getLink()
- Specified by:
getLink in interface User
getUsername
public java.lang.String getUsername()
- Specified by:
getUsername in interface User
getThirdPartyId
public java.lang.String getThirdPartyId()
- Specified by:
getThirdPartyId in interface User
isInstalled
public java.lang.Boolean isInstalled()
- Specified by:
isInstalled in interface User
getTimezone
public java.lang.Double getTimezone()
- Specified by:
getTimezone in interface User
getUpdatedTime
public java.util.Date getUpdatedTime()
- Specified by:
getUpdatedTime in interface User
isVerified
public java.lang.Boolean isVerified()
- Specified by:
isVerified in interface User
getBio
public java.lang.String getBio()
- Specified by:
getBio in interface User
getBirthday
public java.lang.String getBirthday()
- Specified by:
getBirthday in interface User
getCover
public Cover getCover()
- Specified by:
getCover in interface User
getEducation
public java.util.List<User.Education> getEducation()
- Specified by:
getEducation in interface User
getEmail
public java.lang.String getEmail()
- Specified by:
getEmail in interface User
getHometown
public IdNameEntity getHometown()
- Specified by:
getHometown in interface User
getInterestedIn
public java.util.List<java.lang.String> getInterestedIn()
- Specified by:
getInterestedIn in interface User
getLocation
public IdNameEntity getLocation()
- Specified by:
getLocation in interface User
getPolitical
public java.lang.String getPolitical()
- Specified by:
getPolitical in interface User
getFavoriteAthletes
public java.util.List<IdNameEntity> getFavoriteAthletes()
- Specified by:
getFavoriteAthletes in interface User
getFavoriteTeams
public java.util.List<IdNameEntity> getFavoriteTeams()
- Specified by:
getFavoriteTeams in interface User
getPicture
public Picture getPicture()
- Specified by:
getPicture in interface User
getQuotes
public java.lang.String getQuotes()
- Specified by:
getQuotes in interface User
getRelationshipStatus
public java.lang.String getRelationshipStatus()
- Specified by:
getRelationshipStatus in interface User
getReligion
public java.lang.String getReligion()
- Specified by:
getReligion in interface User
getSignificantOther
public IdNameEntity getSignificantOther()
- Specified by:
getSignificantOther in interface User
getVideoUploadLimits
public User.VideoUploadLimits getVideoUploadLimits()
- Specified by:
getVideoUploadLimits in interface User
getWebsite
public java.net.URL getWebsite()
- Specified by:
getWebsite in interface User
getWork
public java.util.List<User.Work> getWork()
- Specified by:
getWork in interface User
createUserList
static ResponseList<User> createUserList(HttpResponse res,
Configuration conf)
throws FacebookException
- Throws:
FacebookException
createUserArray
static java.util.List<User> createUserArray(HttpResponse res,
Configuration conf)
throws FacebookException
- Throws:
FacebookException
compareTo
public int compareTo(User that)
- Specified by:
compareTo in interface java.lang.Comparable<User>
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object