Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Xml(name = "S:Envelope")
- data class GetServicesResponseEnvelope(
- @Element(name = "S:Body")
- val body: GetServicesResponseBody?,
- @Element(name = "S:Fault")
- val fault: Fault?
- ) {
- @Xml
- data class GetServicesResponseBody(
- @Element(name = "getGuServicesResponseParamsType")
- val response: GetServicesResponseParamsType
- )
- @Xml
- data class GetServicesResponseParamsType(
- @Path("items")
- @Element(name = "item")
- val services: List<Service>?,
- @Element(name = "result")
- val result: ErrorResult
- )
- @Xml
- data class Service(
- @PropertyElement
- val id: Int?,
- @PropertyElement
- val categoryId: Int?,
- @PropertyElement
- val shortName: String?,
- @PropertyElement
- val name: String?,
- @PropertyElement
- val statusName: String?,
- @Path("departments")
- @Element(name = "item")
- val departments: List<Department>?
- )
- @Xml
- data class Department(
- @PropertyElement
- val id: Int,
- @PropertyElement
- val shortName: String,
- @PropertyElement
- val name: String,
- @PropertyElement
- val statusName: String,
- @PropertyElement
- val typeName: String,
- @PropertyElement
- val address: String
- )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement