Option
data class Option
Fields
Name | Description |
---|---|
var percentage: Int
|
|
val id: String
|
|
val url: String
|
|
val description: String
|
|
val is_correct: Boolean
|
|
val answer_url: String?
|
|
val vote_url: String?
|
|
val image_url: String?
|
|
var answer_count: Int?
|
|
var vote_count: Int?
|
Constructors
<init>
constructor(id: String, url: String, description: String, is_correct: Boolean, answer_url: String?, vote_url: String?, image_url: String?, answer_count: Int?, vote_count: Int?)
Parameters
Name | Description |
---|---|
id: String
|
|
url: String
|
|
description: String
|
|
is_correct: Boolean
|
|
answer_url: String?
|
|
vote_url: String?
|
|
image_url: String?
|
|
answer_count: Int?
|
|
vote_count: Int?
|
Methods
getPercentVote
fun getPercentVote(total: Float): Int
Parameters
Name | Description |
---|---|
total: Float
|
ReturnValue
Name | Description |
---|---|
Int
|
getPercent
fun getPercent(total: Float): Int
Parameters
Name | Description |
---|---|
total: Float
|
ReturnValue
Name | Description |
---|---|
Int
|
getMergedVoteCount
fun getMergedVoteCount(): Float
ReturnValue
Name | Description |
---|---|
Float
|
getMergedVoteUrl
fun getMergedVoteUrl(): String?
ReturnValue
Name | Description |
---|---|
String?
|