public class VkProfile extends OAuth20Profile
This class is the user profile for Vk with appropriate getters.
It is returned by the VkClient
.
Method : | From the JSON profile response : |
---|---|
The attributes of the
CommonProfile |
|
String getEmail() | empty string |
String getFirstName() | the first_name field |
String getFamilyName() | the last_name field |
String getDisplayName() | the first_name and last_name fields |
String getUsername() | the domain attribute or id |
Gender getGender() | Gender.UNSPECIFIED |
Locale getLocale() | null |
String getPictureUrl() | the photo_max attribute |
String getProfileUrl() | url to vk.com user page |
String getLocation() | null |
More specific attributes | |
String getLastName() | the last_name attribute |
String getDomain() | the domain attribute |
String getBirhtDate() | the bdate attribute |
String getFoto50() | the photo_50 attribute |
... |
VkClient
,
Serialized FormUSERNAME
logger, SEPARATOR
Constructor and Description |
---|
VkProfile() |
clear, getAccessToken, setAccessToken
addAttribute, addAttributes, addPermission, addPermissions, addRole, addRoles, build, getAttribute, getAttribute, getAttributes, getId, getPermissions, getRoles, getTypedId, isRemembered, readExternal, setId, setRemembered, toString, writeExternal
protected AttributesDefinition getAttributesDefinition()
UserProfile
getAttributesDefinition
in class UserProfile
public String getDisplayName()
CommonProfile
getDisplayName
in class CommonProfile
public String getUsername()
CommonProfile
getUsername
in class CommonProfile
public String getPictureUrl()
CommonProfile
getPictureUrl
in class CommonProfile
public String getProfileUrl()
CommonProfile
getProfileUrl
in class CommonProfile
public String getEmail()
CommonProfile
getEmail
in class CommonProfile
public String getFamilyName()
CommonProfile
getFamilyName
in class CommonProfile
public Gender getGender()
CommonProfile
getGender
in class CommonProfile
public Locale getLocale()
CommonProfile
getLocale
in class CommonProfile
public String getLocation()
CommonProfile
getLocation
in class CommonProfile
public String getFirstName()
CommonProfile
getFirstName
in class CommonProfile
public String getLastName()
public Date getBirthDate()
public String getFoto50()
public String getFoto100()
public String getFoto200Orig()
public String getFoto200()
public String getFoto400Orig()
public String getFotoMax()
public String getFotoMaxOrig()
public Boolean isOnline()
public Boolean isOnlineMobile()
public String getDomain()
public Boolean isHasMobile()
public String getMobilePhone()
public String getHomePhone()
public String getSkype()
public String getSite()
public Boolean isCanPost()
public Boolean isCanSeeAllPost()
public Boolean isCanSeeAudio()
public Boolean isCanWritePrivateMessage()
public String getStatus()
public Integer getCommonCount()
public Integer getRelation()
Copyright © 2016. All rights reserved.