mirror of
https://github.com/rt-bishop/Look4Sat.git
synced 2026-10-02 03:15:37 +00:00
Now properly handling the state of location updates
This commit is contained in:
1 parent
b0b2283ca5
commit
608b7e9311
4 files changed
+26
-15
No files matched your search
@@ -17,4 +17,6 @@ interface LocationHandler {
|
||||
fun setPositionFromNet()
|
||||
|
||||
fun setPositionFromQth(qthString: String)
|
||||
|
||||
fun setPositionHandled()
|
||||
}
|
||||
@@ -20,5 +20,6 @@ package com.rtbishop.look4sat.domain.model
|
||||
sealed class DataState<out T> {
|
||||
data class Success<out T>(val data: T) : DataState<T>()
|
||||
data class Error(val message: String?) : DataState<Nothing>()
|
||||
object Handled : DataState<Nothing>()
|
||||
object Loading : DataState<Nothing>()
|
||||
}
|
||||
Reference in new issue
Block a user