SHARE
TWEET

Untitled

a guest Aug 25th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sealed class Result<out T : Any?, out R: String?> {
  2.     class ResultWrapper<out T : Any?, out R: String?>(val data: T, val message: String?) : Result<T, R>()
  3.     class Failure<out T: Any?, out R: String?>(val data: T, val message: String?): Result<T, R>()
  4.     class Error(val exception: Throwable) : Result<Nothing, Nothing>()
  5. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top