SHARE
TWEET

Untitled

a guest Jul 17th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. inline fun <reified T : Any> successResult(data: T) = SResult.Success(data)
  2. fun loading() = SResult.Loading
  3. fun emptyResult() = SResult.Empty
  4. fun errorResult(code: Int, message: String) = SResult.Error(code, message)
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
 
Top