facebook4j.internal.json
Class UserJSONImpl

java.lang.Object
  extended by 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

Nested Class Summary
private  class UserJSONImpl.EducationClassJSONImpl
           
private  class UserJSONImpl.EducationJSONImpl
           
private  class UserJSONImpl.VideoUploadLimitsJSONImpl
           
private  class UserJSONImpl.WorkJSONImpl
           
 
Nested classes/interfaces inherited from interface facebook4j.User
User.Education, User.EducationClass, User.VideoUploadLimits, User.Work
 
Field Summary
private  java.lang.String bio
           
private  java.lang.String birthday
           
private  Cover cover
           
private  java.util.List<User.Education> education
           
private  java.lang.String email
           
private  java.util.List<IdNameEntity> favoriteAthletes
           
private  java.util.List<IdNameEntity> favoriteTeams
           
private  java.lang.String firstName
           
private  java.lang.String gender
           
private  IdNameEntity hometown
           
private  java.lang.String id
           
private  java.lang.Boolean installed
           
private  java.util.List<java.lang.String> interestedIn
           
private  java.util.List<IdNameEntity> languages
           
private  java.lang.String lastName
           
private  java.net.URL link
           
private  java.util.Locale locale
           
private  IdNameEntity location
           
private  java.lang.String middleName
           
private  java.lang.String name
           
private  Picture picture
           
private  java.lang.String political
           
private  java.lang.String quotes
           
private  java.lang.String relationshipStatus
           
private  java.lang.String religion
           
private static long serialVersionUID
           
private  IdNameEntity significantOther
           
private  java.lang.String thirdPartyId
           
private  java.lang.Double timezone
           
private  java.util.Date updatedTime
           
private  java.lang.String username
           
private  java.lang.Boolean verified
           
private  User.VideoUploadLimits videoUploadLimits
           
private  java.net.URL website
           
private  java.util.List<User.Work> work
           
 
Fields inherited from interface facebook4j.User
BIRTHDAY_DATE_FORMAT
 
Constructor Summary
UserJSONImpl(HttpResponse res, Configuration conf)
           
UserJSONImpl(JSONObject json)
           
 
Method Summary
 int compareTo(User that)
           
(package private) static java.util.List<User> createUserArray(HttpResponse res, Configuration conf)
           
(package private) static ResponseList<User> createUserList(HttpResponse res, Configuration conf)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getBio()
           
 java.lang.String getBirthday()
           
 Cover getCover()
           
 java.util.List<User.Education> getEducation()
           
 java.lang.String getEmail()
           
 java.util.List<IdNameEntity> getFavoriteAthletes()
           
 java.util.List<IdNameEntity> getFavoriteTeams()
           
 java.lang.String getFirstName()
           
 java.lang.String getGender()
           
 IdNameEntity getHometown()
           
 java.lang.String getId()
           
 java.util.List<java.lang.String> getInterestedIn()
           
 java.util.List<IdNameEntity> getLanguages()
           
 java.lang.String getLastName()
           
 java.net.URL getLink()
           
 java.util.Locale getLocale()
           
 IdNameEntity getLocation()
           
 java.lang.String getMiddleName()
           
 java.lang.String getName()
           
 Picture getPicture()
           
 java.lang.String getPolitical()
           
 java.lang.String getQuotes()
           
 java.lang.String getRelationshipStatus()
           
 java.lang.String getReligion()
           
 IdNameEntity getSignificantOther()
           
 java.lang.String getThirdPartyId()
           
 java.lang.Double getTimezone()
           
 java.util.Date getUpdatedTime()
           
 java.lang.String getUsername()
           
 User.VideoUploadLimits getVideoUploadLimits()
           
 java.net.URL getWebsite()
           
 java.util.List<User.Work> getWork()
           
 int hashCode()
           
private  void init(JSONObject json)
           
 java.lang.Boolean isInstalled()
           
 java.lang.Boolean isVerified()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

UserJSONImpl

UserJSONImpl(HttpResponse res,
             Configuration conf)
       throws FacebookException
Throws:
FacebookException

UserJSONImpl

UserJSONImpl(JSONObject json)
       throws FacebookException
Throws:
FacebookException
Method Detail

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