Changeset View
Changeset View
Standalone View
Standalone View
app/src/main/java/it/reyboz/bustorino/data/DBUpdateWorker.java
| Show All 28 Lines | |||||
| import it.reyboz.bustorino.backend.Fetcher; | import it.reyboz.bustorino.backend.Fetcher; | ||||
| import it.reyboz.bustorino.backend.Notifications; | import it.reyboz.bustorino.backend.Notifications; | ||||
| import java.util.concurrent.TimeUnit; | import java.util.concurrent.TimeUnit; | ||||
| import java.util.concurrent.atomic.AtomicReference; | import java.util.concurrent.atomic.AtomicReference; | ||||
| import static android.content.Context.MODE_PRIVATE; | import static android.content.Context.MODE_PRIVATE; | ||||
| //TODO: Move to code to Kotlin | |||||
| public class DBUpdateWorker extends Worker{ | public class DBUpdateWorker extends Worker{ | ||||
| public static final String ERROR_CODE_KEY ="Error_Code"; | public static final String ERROR_CODE_KEY ="Error_Code"; | ||||
| public static final String ERROR_REASON_KEY = "ERROR_REASON"; | public static final String ERROR_REASON_KEY = "ERROR_REASON"; | ||||
| public static final int ERROR_FETCHING_VERSION = 4; | public static final int ERROR_FETCHING_VERSION = 4; | ||||
| public static final int ERROR_DOWNLOADING_STOPS = 5; | public static final int ERROR_DOWNLOADING_STOPS = 5; | ||||
| public static final int ERROR_DOWNLOADING_LINES = 6; | public static final int ERROR_DOWNLOADING_LINES = 6; | ||||
| ▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines | |||||
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register