Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 1.14 KB | None | 0 0
  1. @Xml(name = "S:Envelope")
  2. data class GetServicesResponseEnvelope(
  3.     @Element(name = "S:Body")
  4.     val body: GetServicesResponseBody?,
  5.     @Element(name = "S:Fault")
  6.     val fault: Fault?
  7. ) {
  8.     @Xml
  9.     data class GetServicesResponseBody(
  10.         @Element(name = "getGuServicesResponseParamsType")
  11.         val response: GetServicesResponseParamsType
  12.     )
  13.  
  14.     @Xml
  15.     data class GetServicesResponseParamsType(
  16.         @Path("items")
  17.         @Element(name = "item")
  18.         val services: List<Service>?,
  19.         @Element(name = "result")
  20.         val result: ErrorResult
  21.     )
  22.  
  23.     @Xml
  24.     data class Service(
  25.         @PropertyElement
  26.         val id: Int?,
  27.         @PropertyElement
  28.         val categoryId: Int?,
  29.         @PropertyElement
  30.         val shortName: String?,
  31.         @PropertyElement
  32.         val name: String?,
  33.         @PropertyElement
  34.         val statusName: String?,
  35.         @Path("departments")
  36.         @Element(name = "item")
  37.         val departments: List<Department>?
  38.     )
  39.  
  40.     @Xml
  41.     data class Department(
  42.         @PropertyElement
  43.         val id: Int,
  44.         @PropertyElement
  45.         val shortName: String,
  46.         @PropertyElement
  47.         val name: String,
  48.         @PropertyElement
  49.         val statusName: String,
  50.         @PropertyElement
  51.         val typeName: String,
  52.         @PropertyElement
  53.         val address: String
  54.     )
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement