daily pastebin goal
85%
SHARE
TWEET

asdasd

a guest Sep 19th, 2018 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top