/
InstanceDetail.kt
37 lines (34 loc) · 1.09 KB
/
InstanceDetail.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package io.github.jamiesanson.mammut.data.remote.response
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.android.parcel.Parcelize
@Parcelize
data class InstanceDetail(
val id: String,
val name: String,
val uptime: Float,
val up: Boolean,
val dead: Boolean,
val version: String,
val ipv6: Boolean,
val users: String,
val statuses: String,
val connections: String,
val thumbnail: String,
@SerializedName("active_users")
val activeUsers: Int,
val info: Info
): Parcelable {
@Parcelize
data class Info(
@SerializedName("short_description")
val shortDescription: String,
@SerializedName("full_description")
val fullDescription: String,
val languages: List<String>,
@SerializedName("other_languages_accepted")
val otherLanguagesAccepted: Boolean,
@SerializedName("prohibited_content")
val prohibitedContent: List<String>
): Parcelable
}