Skip to content

Commit de10e50

Browse files
committed
Обновил DTO
1 parent beb08bf commit de10e50

File tree

2 files changed

+5
-19
lines changed

2 files changed

+5
-19
lines changed

app/src/main/java/otus/homework/coroutines/CatsView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class CatsView @JvmOverloads constructor(
2222
}
2323

2424
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
2626
}
2727
}
2828

app/src/main/java/otus/homework/coroutines/Fact.kt

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,8 @@ package otus.homework.coroutines
33
import com.google.gson.annotations.SerializedName
44

55
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
2410
)

0 commit comments

Comments
 (0)