Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. @JsonClass(generateAdapter = true)
  2. data class CommonResponse<T>(val result: T?)
  3.  
  4. {
  5. "result": {
  6. "bar": 1
  7. }
  8. }
  9.  
  10. data class Foo(val bar: Int)
  11.  
  12. interface {
  13.  
  14. @Path("/foo")
  15. fun getFoo(): CommonResponse<Foo>
  16. }
  17.  
  18. {
  19. "result": {}
  20. }
  21.  
  22. {
  23. "result": {
  24. "bar": null
  25. }
  26. }
  27.  
  28. {
  29. "result": {}
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement