Now properly handling the state of location updates

This commit is contained in:
Arty Bishop committed 2022-01-24 17:56:57 +00:00
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>()
}