Skip to content

Instantly share code, notes, and snippets.

@jutikorn
Created December 7, 2018 12:13
Show Gist options
  • Save jutikorn/c11d1ef2e2abca9cbd7467e479578b3f to your computer and use it in GitHub Desktop.
Save jutikorn/c11d1ef2e2abca9cbd7467e479578b3f to your computer and use it in GitHub Desktop.
import android.arch.lifecycle.LiveData
data class ResponseError(val code: Int? = null, val messages: String? = null)
data class ResponseResult<T>(val data: LiveData<T>, val error: LiveData<ResponseError>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment