Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. class ProblemVM(
  2. val url: String,
  3. val message: String,
  4. val status: Int,
  5. val params: MutableMap<String, Any> = HashMap()
  6. ) {
  7.  
  8. fun with(key: String, value: Any): ProblemVM {
  9. params[key] = value
  10. return this
  11. }
  12.  
  13. fun with(values: HashMap<String, Any>): ProblemVM {
  14. params.clear()
  15. params.putAll(values)
  16. return this
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement