Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ContactsWrapperResponse(
- @SerializedName("main") val main: List<ContactResponse>,
- @SerializedName("additional") val additional: List<ContactResponse>,
- @SerializedName("emergencyService") val emergency: List<ContactResponse>
- )
- class ContactResponse(
- @SerializedName("id") val id: Long,
- @SerializedName("title") val title: String,
- @SerializedName("items") val values: List<ContactValueResponse>
- )
- class ContactValueResponse(
- @SerializedName("name") val title: String,
- @SerializedName("value") val value: String = title,
- @SerializedName("type") val type: ContactTypeResponse = ContactTypeResponse.OTHER
- )
- enum class ContactTypeResponse {
- @SerializedName("phone")
- PHONE,
- @SerializedName("mail")
- EMAIL,
- @SerializedName("site")
- SITE,
- @SerializedName("address")
- ADDRESS,
- @SerializedName("name")
- NAME,
- @SerializedName("other")
- OTHER
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement