Created
December 7, 2018 12:13
-
-
Save jutikorn/c11d1ef2e2abca9cbd7467e479578b3f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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