Created
May 30, 2017 09:25
-
-
Save tonyjs/f278e5e1dbbb8ba1334b0150d730f83a to your computer and use it in GitHub Desktop.
LiveDataOwner.kt
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
interface LiveDataOwner { | |
fun getObservableData(): MutableLiveData<DataChangeInfo> | |
} | |
data class DataChangeInfo(val data: Any, val event: DataChangeEvent) | |
enum class DataChangeEvent { | |
NEW, UPDATE, DELETE | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment