| | |
| | | fun getPackages(date: Long, dateType: String) = |
| | | repository.getPackages(date, dateType).asLiveData() |
| | | |
| | | fun getCourierStats(date: Long) = repository.getCourierStats(date).asLiveData() |
| | | fun getCourierStats(date: Long, dateType: String) = |
| | | repository.getCourierStats(date, dateType).asLiveData() |
| | | |
| | | fun getDailyStats() = repository.getDailyStats().asLiveData() |
| | | fun getYearlyHeatmap(date: Long) = repository.getYearlyHeatmap(date).asLiveData() |
| | | |
| | | fun getWeeklyStats(date: Long, weekCount: Int = 6) = |
| | | repository.getWeeklyStats(date, weekCount).asLiveData() |
| | | |
| | | fun getMonthlyStats(date: Long) = repository.getMonthlyStats(date).asLiveData() |
| | | |
| | | fun getYearlyStats(date: Long) = repository.getYearlyStats(date).asLiveData() |
| | | |
| | | fun getYearMonthlyStats(date: Long) = |
| | | repository.getYearMonthlyStats(date).asLiveData() |
| | | |
| | | fun insert(code: Code) = viewModelScope.launch { |
| | | repository.insert(code) |