public static final class VKApiPoll.Answer extends VKApiModel implements Identifiable, android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<VKApiPoll.Answer> |
CREATOR |
int |
id
ID of the answer for the question
|
double |
rate
Rate of this answer in percent
|
java.lang.String |
text
Text of the answer
|
int |
votes
Number of users that voted for this answer
|
fields| Constructor and Description |
|---|
Answer(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
int |
getId()
Returns unique identifier of this object(usually it's value of JSON field "id").
|
VKApiPoll.Answer |
parse(org.json.JSONObject source)
Parses object from source.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getTag, getTag, setTag, setTagpublic int id
public java.lang.String text
public int votes
public double rate
public static android.os.Parcelable.Creator<VKApiPoll.Answer> CREATOR
public VKApiPoll.Answer parse(org.json.JSONObject source)
VKApiModelparse in class VKApiModelsource - server API object.public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelablepublic int getId()
IdentifiablegetId in interface Identifiable