public class VKApiUser extends VKApiOwner implements android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<VKApiUser> |
CREATOR |
static java.lang.String |
FIELD_ONLINE
Field name for
online param. |
static java.lang.String |
FIELD_ONLINE_MOBILE
Field name for
online_mobile param. |
static java.lang.String |
FIELD_PHOTO_100
Field name for
photo_100 param. |
static java.lang.String |
FIELD_PHOTO_200
Field name for
photo_200 param. |
static java.lang.String |
FIELD_PHOTO_400_ORIGIN
Field name for
photo_400_orig param. |
static java.lang.String |
FIELD_PHOTO_50
Field name for
photo_50 param. |
static java.lang.String |
FIELD_PHOTO_BIG
Field name for
photo_big param. |
static java.lang.String |
FIELD_PHOTO_MAX
Field name for
photo_max param. |
static java.lang.String |
FIELD_PHOTO_MAX_ORIGIN
Field name for
photo_max_orig param. |
static java.lang.String |
FIELDS_DEFAULT
All required for fill all fields.
|
java.lang.String |
first_name
First name of user.
|
java.lang.String |
last_name
Last name of user.
|
boolean |
online
Information whether the user is online.
|
boolean |
online_mobile
If user utilizes a mobile application or site mobile version, it returns online_mobile as additional.
|
VKPhotoSizes |
photo
|
java.lang.String |
photo_100
URL of default square photo of the user with 100 pixels in width.
|
java.lang.String |
photo_200
URL of default square photo of the user with 200 pixels in width.
|
java.lang.String |
photo_200_orig
URL of default photo of the user with 200 pixels in width.
|
java.lang.String |
photo_400_orig
URL of default photo of the user with 400 pixels in width.
|
java.lang.String |
photo_50
URL of default square photo of the user with 50 pixels in width.
|
java.lang.String |
photo_big |
java.lang.String |
photo_max |
java.lang.String |
photo_max_orig |
idfields| Constructor and Description |
|---|
VKApiUser()
Creates empty User instance.
|
VKApiUser(org.json.JSONObject from) |
VKApiUser(android.os.Parcel in)
Creates an User instance from Parcel.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
addSquarePhoto(java.lang.String photoUrl,
int size) |
int |
describeContents() |
VKApiUser |
parse(org.json.JSONObject from)
Fills an user object from server response.
|
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getIdgetTag, getTag, setTag, setTagpublic static final java.lang.String FIELD_ONLINE
online param.public static final java.lang.String FIELD_ONLINE_MOBILE
online_mobile param.public static final java.lang.String FIELD_PHOTO_50
photo_50 param.public static final java.lang.String FIELD_PHOTO_100
photo_100 param.public static final java.lang.String FIELD_PHOTO_200
photo_200 param.public static final java.lang.String FIELD_PHOTO_400_ORIGIN
photo_400_orig param.public static final java.lang.String FIELD_PHOTO_MAX
photo_max param.public static final java.lang.String FIELD_PHOTO_MAX_ORIGIN
photo_max_orig param.public static final java.lang.String FIELD_PHOTO_BIG
photo_big param.public static final java.lang.String FIELDS_DEFAULT
public java.lang.String first_name
public java.lang.String last_name
public boolean online
public boolean online_mobile
public java.lang.String photo_50
public java.lang.String photo_100
public java.lang.String photo_200
public java.lang.String photo_200_orig
public java.lang.String photo_400_orig
public java.lang.String photo_max
public java.lang.String photo_max_orig
public java.lang.String photo_big
public VKPhotoSizes photo
public static android.os.Parcelable.Creator<VKApiUser> CREATOR
public VKApiUser(org.json.JSONObject from)
throws org.json.JSONException
org.json.JSONExceptionpublic VKApiUser(android.os.Parcel in)
public VKApiUser()
public VKApiUser parse(org.json.JSONObject from)
parse in class VKApiOwnerfrom - server API object.protected java.lang.String addSquarePhoto(java.lang.String photoUrl,
int size)
public java.lang.String toString()
toString in class java.lang.Objectpublic int describeContents()
describeContents in interface android.os.ParcelabledescribeContents in class VKApiOwnerpublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.ParcelablewriteToParcel in class VKApiOwner