File tree Expand file tree Collapse file tree 2 files changed +5
-19
lines changed
app/src/main/java/otus/homework/coroutines Expand file tree Collapse file tree 2 files changed +5
-19
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class CatsView @JvmOverloads constructor(
22
22
}
23
23
24
24
override fun populate (fact : Fact ) {
25
- findViewById<TextView >(R .id.fact_textView).text = fact.text
25
+ findViewById<TextView >(R .id.fact_textView).text = fact.fact
26
26
}
27
27
}
28
28
Original file line number Diff line number Diff line change @@ -3,22 +3,8 @@ package otus.homework.coroutines
3
3
import com.google.gson.annotations.SerializedName
4
4
5
5
data class Fact (
6
- @field:SerializedName("createdAt")
7
- val createdAt : String ,
8
- @field:SerializedName("deleted")
9
- val deleted : Boolean ,
10
- @field:SerializedName("_id ")
11
- val id : String ,
12
- @field:SerializedName("text")
13
- val text : String ,
14
- @field:SerializedName("source")
15
- val source : String ,
16
- @field:SerializedName("used")
17
- val used : Boolean ,
18
- @field:SerializedName("type")
19
- val type : String ,
20
- @field:SerializedName("user")
21
- val user : String ,
22
- @field:SerializedName("updatedAt")
23
- val updatedAt : String
6
+ @field:SerializedName("fact")
7
+ val fact : String ,
8
+ @field:SerializedName("length")
9
+ val length : Int
24
10
)
You can’t perform that action at this time.
0 commit comments