Advertisement
Guest User

asdasd

a guest
Sep 19th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. class ContactsWrapperResponse(
  2. @SerializedName("main") val main: List<ContactResponse>,
  3. @SerializedName("additional") val additional: List<ContactResponse>,
  4. @SerializedName("emergencyService") val emergency: List<ContactResponse>
  5. )
  6.  
  7. class ContactResponse(
  8. @SerializedName("id") val id: Long,
  9. @SerializedName("title") val title: String,
  10. @SerializedName("items") val values: List<ContactValueResponse>
  11. )
  12.  
  13.  
  14. class ContactValueResponse(
  15. @SerializedName("name") val title: String,
  16. @SerializedName("value") val value: String = title,
  17. @SerializedName("type") val type: ContactTypeResponse = ContactTypeResponse.OTHER
  18. )
  19.  
  20. enum class ContactTypeResponse {
  21.  
  22. @SerializedName("phone")
  23. PHONE,
  24.  
  25. @SerializedName("mail")
  26. EMAIL,
  27.  
  28. @SerializedName("site")
  29. SITE,
  30.  
  31. @SerializedName("address")
  32. ADDRESS,
  33.  
  34. @SerializedName("name")
  35. NAME,
  36.  
  37. @SerializedName("other")
  38. OTHER
  39.  
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement