public interface Person
Modifier and Type | Interface and Description |
---|---|
static class |
Person.Field
The fields that represent the person object in json form.
|
static class |
Person.Gender
Enumeration of genders.
|
Modifier and Type | Field and Description |
---|---|
static String |
PROFILE_URL_TYPE
The type of a profile url when represented as a list field.
|
static String |
THUMBNAIL_PHOTO_TYPE
The type of thumbnail photo types when represented as list fields.
|
Modifier and Type | Method and Description |
---|---|
String |
getAboutMe()
Get a general statement about the person, specified as a string.
|
List<Account> |
getAccounts()
Get the list of online accounts held by this person.
|
List<String> |
getActivities()
Get the person's favorite activities, specified as an List of strings.
|
List<Address> |
getAddresses()
Get addresses associated with the person, specified as an List of Address objects.
|
Integer |
getAge()
Get the person's age, specified as a number.
|
Map<String,? extends Object> |
getAppData()
Get app data for the person.
|
Date |
getBirthday()
Get the person's date of birth, specified as a
Date object. |
BodyType |
getBodyType()
Get the person's body characteristics, specified as an BodyType.
|
List<String> |
getBooks()
Get the person's favorite books, specified as an List of strings.
|
List<String> |
getCars()
Get the person's favorite cars, specified as an List of strings.
|
String |
getChildren()
Get a description of the person's children, specified as a string.
|
Address |
getCurrentLocation()
Get the person's current location, specified as an
Address . |
String |
getDisplayName()
The display name for the user.
|
Enum<Drinker> |
getDrinker()
|
List<ListField> |
getEmails()
Get the person's Emails associated with the person.
|
String |
getEthnicity()
Get the person's ethnicity, specified as a string.
|
String |
getFashion()
Get the person's thoughts on fashion, specified as a string.
|
List<String> |
getFood()
Get the person's favorite food, specified as an List of strings.
|
Person.Gender |
getGender()
Get a person's gender, specified as an
Person.Gender . |
String |
getHappiestWhen()
Get a description of when the person is happiest, specified as a string.
|
Boolean |
getHasApp()
Get if the person has used the current app.
|
List<String> |
getHeroes()
Get a person's favorite heroes, specified as an Array of strings.
|
String |
getHumor()
Get the person's thoughts on humor, specified as a string.
|
String |
getId()
Get A string ID that can be permanently associated with this person.
|
List<ListField> |
getIms()
Get a list of Instant messaging address for this Person.
|
List<String> |
getInterests()
Get the person's interests, hobbies or passions, specified as an List of strings.
|
boolean |
getIsOwner() |
boolean |
getIsViewer()
Returns true if this person object represents the currently logged in user.
|
String |
getJobInterests()
Get the Person's favorite jobs, or job interests and skills, specified as a string.
|
List<String> |
getLanguagesSpoken()
Get a List of the languages that the person speaks as ISO 639-1 codes, specified as an List of
strings.
|
String |
getLivingArrangement()
Get a description of the person's living arrangement, specified as a string.
|
List<Enum<LookingFor>> |
getLookingFor()
Get a person's statement about who or what they are looking for, or what they are interested in
meeting people for.
|
List<String> |
getMovies()
Get the Person's favorite movies, specified as an List of strings.
|
List<String> |
getMusic()
Get the Person's favorite music, specified as an List of strings Container support for this
field is OPTIONAL.
|
Name |
getName()
Get the person's name Container support for this field is REQUIRED.
|
Enum<NetworkPresence> |
getNetworkPresence()
Get the person's current network status.
|
String |
getNickname()
Get the person's nickname.
|
List<Organization> |
getOrganizations()
Get a list of current or past organizational affiliations of this Person.
|
String |
getPets()
Get a description of the person's pets Container support for this field is OPTIONAL.
|
List<ListField> |
getPhoneNumbers()
Get the Phone numbers associated with the person.
|
List<ListField> |
getPhotos()
URL of a photo of this person.
|
String |
getPoliticalViews()
Get the Person's political views, specified as a string.
|
String |
getPreferredUsername()
Get the Person's preferred username, specified as a string.
|
Url |
getProfileSong()
Get the Person's profile song, specified as an
Url . |
String |
getProfileUrl()
Get the person's profile URL.
|
Url |
getProfileVideo()
Get the Person's profile video.
|
List<String> |
getQuotes()
Get the person's favorite quotes Container support for this field is OPTIONAL.
|
String |
getRelationshipStatus()
Get the person's relationship status.
|
String |
getReligion()
Get the person's relgion or religious views.
|
String |
getRomance()
Get the person's comments about romance.
|
String |
getScaredOf()
Get what the person is scared of Container support for this field is OPTIONAL.
|
String |
getSexualOrientation()
Get the person's sexual orientation.
|
Enum<Smoker> |
getSmoker()
Get the person's smoking status.
|
List<String> |
getSports()
Get the person's favorite sports.
|
String |
getStatus()
Get the person's status, headline or shoutout.
|
List<String> |
getTags()
Get arbitrary tags about the person.
|
String |
getThumbnailUrl()
Get the person's photo thumbnail URL, specified as a string.
|
List<String> |
getTurnOffs()
Get the person's turn offs.
|
List<String> |
getTurnOns()
Get the person's turn ons.
|
List<String> |
getTvShows()
Get the person's favorite TV shows.
|
Date |
getUpdated()
The time this person was last updated.
|
List<Url> |
getUrls()
Get the URLs related to the person, their webpages, or feeds Container support for this field
is OPTIONAL.
|
Long |
getUtcOffset()
Get the Person's time zone, specified as the difference in minutes between Greenwich Mean Time
(GMT) and the user's local time.
|
void |
setAboutMe(String aboutMe)
Set a general statement about the person, specified as a string.
|
void |
setAccounts(List<Account> accounts)
Set the list of online accounts held by this person.
|
void |
setActivities(List<String> activities)
Set the person's favorite activities, specified as an List of strings.
|
void |
setAddresses(List<Address> addresses)
Set addresses associated with the person, specified as an List of Address objects.
|
void |
setAge(Integer age)
Set the person's age, specified as a number.
|
void |
setAppData(Map<String,? extends Object> appData)
Sets app data for the person.
|
void |
setBirthday(Date birthday)
Set the person's date of birth, specified as a
Date object. |
void |
setBodyType(BodyType bodyType)
Set the person's body characteristics, specified as an BodyType.
|
void |
setBooks(List<String> books)
Set the person's favorite books, specified as an List of strings.
|
void |
setCars(List<String> cars)
Set the person's favorite cars, specified as an List of strings.
|
void |
setChildren(String children)
Set a description of the person's children, specified as a string.
|
void |
setCurrentLocation(Address currentLocation)
Set the person's current location, specified as an
Address . |
void |
setDisplayName(String displayName)
Set the display name.
|
void |
setDrinker(Enum<Drinker> newDrinker)
|
void |
setEmails(List<ListField> emails)
Set the person's Emails associated with the person.
|
void |
setEthnicity(String ethnicity)
Set the person's ethnicity, specified as a string.
|
void |
setFashion(String fashion)
Set the person's thoughts on fashion, specified as a string.
|
void |
setFood(List<String> food)
Set the person's favorite food, specified as an List of strings.
|
void |
setGender(Person.Gender newGender)
Set a person's gender, specified as an
Person.Gender . |
void |
setHappiestWhen(String happiestWhen)
Set a description of when the person is happiest, specified as a string.
|
void |
setHasApp(Boolean hasApp)
Set if the person has used the current app.
|
void |
setHeroes(List<String> heroes)
Set a person's favorite heroes, specified as an Array of strings.
|
void |
setHumor(String humor)
Set the person's thoughts on humor, specified as a string.
|
void |
setId(String id)
Set A string ID that can be permanently associated with this person.
|
void |
setIms(List<ListField> ims)
Set a list of Instant messaging address for this Person.
|
void |
setInterests(List<String> interests)
Set the person's interests, hobbies or passions, specified as an List of strings.
|
void |
setIsOwner(boolean isOwner)
Set the owner flag.
|
void |
setIsViewer(boolean isViewer)
Returns true if this person object represents the currently logged in user.
|
void |
setJobInterests(String jobInterests)
Set the Person's favorite jobs, or job interests and skills, specified as a string.
|
void |
setLanguagesSpoken(List<String> languagesSpoken)
Set a List of the languages that the person speaks as ISO 639-1 codes, specified as an List of
strings.
|
void |
setLivingArrangement(String livingArrangement)
Set a description of the person's living arrangement, specified as a string.
|
void |
setLookingFor(List<Enum<LookingFor>> lookingFor)
Get a person's statement about who or what they are looking for, or what they are interested in
meeting people for.
|
void |
setMovies(List<String> movies)
Set the Person's favorite movies, specified as an List of strings.
|
void |
setMusic(List<String> music)
Set the Person's favorite music, specified as an List of strings Container support for this
field is OPTIONAL.
|
void |
setName(Name name)
Set the person's name Container support for this field is REQUIRED.
|
void |
setNetworkPresence(Enum<NetworkPresence> networkPresence)
Set the person's current network status.
|
void |
setNickname(String nickname)
Set the the person's nickname.
|
void |
setOrganizations(List<Organization> organizations)
Set a list of current or past organizational affiliations of this Person.
|
void |
setPets(String pets)
Set a description of the person's pets Container support for this field is OPTIONAL.
|
void |
setPhoneNumbers(List<ListField> phoneNumbers)
Set the Phone numbers associated with the person.
|
void |
setPhotos(List<ListField> photos)
Set a list of Photos for the person.
|
void |
setPoliticalViews(String politicalViews)
Set the Person's political views, specified as a string.
|
void |
setPreferredUsername(String preferredString)
Set the Person's preferred username, specified as a string.
|
void |
setProfileSong(Url profileSong)
Set the Person's profile song, specified as an
Url . |
void |
setProfileUrl(String profileUrl)
Set the person's profile URL.
|
void |
setProfileVideo(Url profileVideo)
Set the Person's profile video.
|
void |
setQuotes(List<String> quotes)
Set the person's favorite quotes.
|
void |
setRelationshipStatus(String relationshipStatus)
Set the person's relationship status.
|
void |
setReligion(String religion)
Set the person's relgion or religious views.
|
void |
setRomance(String romance)
Set a the person's comments about romance, Container support for this field is OPTIONAL.
|
void |
setScaredOf(String scaredOf)
Set what the person is scared of Container support for this field is OPTIONAL.
|
void |
setSexualOrientation(String sexualOrientation)
Set the person's sexual orientation Container support for this field is OPTIONAL.
|
void |
setSmoker(Enum<Smoker> newSmoker)
Set the person's smoking status.
|
void |
setSports(List<String> sports)
Set the person's favorite sports.
|
void |
setStatus(String status)
Set the person's status, headline or shoutout.
|
void |
setTags(List<String> tags)
Set arbitrary tags about the person.
|
void |
setThumbnailUrl(String thumbnailUrl)
Set the person's photo thumbnail URL, specified as a string.
|
void |
setTurnOffs(List<String> turnOffs)
Set the person's turn offs.
|
void |
setTurnOns(List<String> turnOns)
Set the person's turn ons.
|
void |
setTvShows(List<String> tvShows)
Set the person's favorite TV shows.
|
void |
setUpdated(Date updated)
Set the time this record was last updated.
|
void |
setUrls(List<Url> urls)
Set the URLs related to the person, their webpages, or feeds Container support for this field
is OPTIONAL.
|
void |
setUtcOffset(Long utcOffset)
Set the Person's time zone, specified as the difference in minutes between Greenwich Mean Time
(GMT) and the user's local time.
|
static final String PROFILE_URL_TYPE
static final String THUMBNAIL_PHOTO_TYPE
String getDisplayName()
void setDisplayName(String displayName)
displayName
- the new display name.String getAboutMe()
void setAboutMe(String aboutMe)
aboutMe
- the value of aboutMeList<Account> getAccounts()
void setAccounts(List<Account> accounts)
accounts
- a list of Account objectsList<String> getActivities()
void setActivities(List<String> activities)
activities
- a list of activitiesList<Address> getAddresses()
void setAddresses(List<Address> addresses)
addresses
- a list of address objectsInteger getAge()
void setAge(Integer age)
age
- the persons ageMap<String,? extends Object> getAppData()
void setAppData(Map<String,? extends Object> appData)
appData
- the app data, possibly a subsetDate getBirthday()
Date
object. Container support for this
field is OPTIONAL.void setBirthday(Date birthday)
Date
object. Container support for this
field is OPTIONAL.birthday
- the person's data of birthBodyType getBodyType()
void setBodyType(BodyType bodyType)
bodyType
- the person's BodyTypeList<String> getBooks()
void setBooks(List<String> books)
books
- a list of the person's booksList<String> getCars()
void setCars(List<String> cars)
cars
- a list of the persons favorite carsString getChildren()
void setChildren(String children)
children
- the persons childrenAddress getCurrentLocation()
Address
. Container support for this
field is OPTIONAL.void setCurrentLocation(Address currentLocation)
Address
. Container support for this
field is OPTIONAL.currentLocation
- the persons current locationEnum<Drinker> getDrinker()
Enum
with the enum's key referencing
Drinker
. Container support for this field is OPTIONAL.void setDrinker(Enum<Drinker> newDrinker)
Enum
with the enum's key referencing
Drinker
. Container support for this field is OPTIONAL.newDrinker
- the persons drinking statusList<ListField> getEmails()
void setEmails(List<ListField> emails)
emails
- a list of the person's emailsString getEthnicity()
void setEthnicity(String ethnicity)
ethnicity
- the person's ethnicityString getFashion()
void setFashion(String fashion)
fashion
- the person's thoughts on fashionList<String> getFood()
void setFood(List<String> food)
food
- the person's favorite foodPerson.Gender getGender()
Person.Gender
.void setGender(Person.Gender newGender)
Person.Gender
.newGender
- the person's genderString getHappiestWhen()
void setHappiestWhen(String happiestWhen)
happiestWhen
- a description of when the person is happiestBoolean getHasApp()
void setHasApp(Boolean hasApp)
hasApp
- set true the current app has been usedList<String> getHeroes()
void setHeroes(List<String> heroes)
heroes
- a list of the person's favorite heroesString getHumor()
void setHumor(String humor)
humor
- the person's thoughts on humorString getId()
void setId(String id)
id
- the permanent ID of the personList<ListField> getIms()
void setIms(List<ListField> ims)
ims
- a list ListFields representing IM addresses.List<String> getInterests()
void setInterests(List<String> interests)
interests
- the person's interests, hobbies or passionsString getJobInterests()
void setJobInterests(String jobInterests)
jobInterests
- the Person's favorite jobs, or job interests and skillsList<String> getLanguagesSpoken()
void setLanguagesSpoken(List<String> languagesSpoken)
languagesSpoken
- a List of the languages that the person speaksDate getUpdated()
void setUpdated(Date updated)
updated
- the last update timeString getLivingArrangement()
void setLivingArrangement(String livingArrangement)
livingArrangement
- a description of the person's living arrangementList<Enum<LookingFor>> getLookingFor()
Enum
with the enum's key referencing
LookingFor
Container support for this field is OPTIONAL.void setLookingFor(List<Enum<LookingFor>> lookingFor)
Enum
with the enum's key referencing
LookingFor
Container support for this field is OPTIONAL.lookingFor
- person's statement about who or what they are looking forList<String> getMovies()
void setMovies(List<String> movies)
movies
- the Person's favorite moviesList<String> getMusic()
void setMusic(List<String> music)
music
- Person's favorite musicName getName()
void setName(Name name)
name
- the person's nameEnum<NetworkPresence> getNetworkPresence()
Enum
with the enum's key
referencing NetworkPresence
. Container support for this field is OPTIONAL.void setNetworkPresence(Enum<NetworkPresence> networkPresence)
Enum
with the enum's key
referencing NetworkPresence
. Container support for this field is OPTIONAL.networkPresence
- the person's current network statusString getNickname()
void setNickname(String nickname)
nickname
- the person's nickname.List<Organization> getOrganizations()
void setOrganizations(List<Organization> organizations)
organizations
- a list of Organisation objectsString getPets()
void setPets(String pets)
pets
- a description of the person's petsList<ListField> getPhoneNumbers()
void setPhoneNumbers(List<ListField> phoneNumbers)
phoneNumbers
- the Phone numbers associated with the personList<ListField> getPhotos()
void setPhotos(List<ListField> photos)
photos
- a list of photos.getPhotos()
String getPoliticalViews()
void setPoliticalViews(String politicalViews)
politicalViews
- the Person's political viewsString getPreferredUsername()
void setPreferredUsername(String preferredString)
preferredString
- the Person's preferred usernameUrl getProfileSong()
Url
. Container support for this field
is OPTIONAL.void setProfileSong(Url profileSong)
Url
. Container support for this field
is OPTIONAL.profileSong
- the Person's profile songUrl getProfileVideo()
void setProfileVideo(Url profileVideo)
profileVideo
- the Person's profile videoList<String> getQuotes()
void setQuotes(List<String> quotes)
quotes
- the person's favorite quotesString getRelationshipStatus()
void setRelationshipStatus(String relationshipStatus)
relationshipStatus
- the person's relationship statusString getReligion()
void setReligion(String religion)
religion
- the person's relgion or religious viewsString getRomance()
void setRomance(String romance)
romance
- the person's comments about romance,String getScaredOf()
void setScaredOf(String scaredOf)
scaredOf
- what the person is scared ofString getSexualOrientation()
void setSexualOrientation(String sexualOrientation)
sexualOrientation
- the person's sexual orientationEnum<Smoker> getSmoker()
void setSmoker(Enum<Smoker> newSmoker)
newSmoker
- the person's smoking statusList<String> getSports()
void setSports(List<String> sports)
sports
- the person's favorite sportsString getStatus()
void setStatus(String status)
status
- the person's status, headline or shoutoutList<String> getTags()
void setTags(List<String> tags)
tags
- arbitrary tags about the person.Long getUtcOffset()
void setUtcOffset(Long utcOffset)
utcOffset
- the Person's time zoneList<String> getTurnOffs()
void setTurnOffs(List<String> turnOffs)
turnOffs
- the person's turn offsList<String> getTurnOns()
void setTurnOns(List<String> turnOns)
turnOns
- the person's turn onsList<String> getTvShows()
void setTvShows(List<String> tvShows)
tvShows
- the person's favorite TV shows.List<Url> getUrls()
void setUrls(List<Url> urls)
urls
- the URLs related to the person, their webpages, or feedsboolean getIsOwner()
void setIsOwner(boolean isOwner)
isOwner
- the isOwnerflagboolean getIsViewer()
void setIsViewer(boolean isViewer)
isViewer
- the isViewer FlagString getProfileUrl()
void setProfileUrl(String profileUrl)
profileUrl
- the person's profile URLString getThumbnailUrl()
void setThumbnailUrl(String thumbnailUrl)
thumbnailUrl
- the person's photo thumbnail URLCopyright © 2018 WSO2. All Rights Reserved.