Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ProblemVM(
- val url: String,
- val message: String,
- val status: Int,
- val params: MutableMap<String, Any> = HashMap()
- ) {
- fun with(key: String, value: Any): ProblemVM {
- params[key] = value
- return this
- }
- fun with(values: HashMap<String, Any>): ProblemVM {
- params.clear()
- params.putAll(values)
- return this
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement