Добавил логику работы с ИИ-агентом и работу с расписанием

This commit is contained in:
2025-12-25 22:40:40 +03:00
parent d8a0237e43
commit 4ff516d06a
41 changed files with 1778 additions and 259 deletions

View File

@@ -11,5 +11,14 @@ class GetSchedulesUseCase @Inject constructor(
operator fun invoke(userId: String): Flow<List<Schedule>> {
return repository.getSchedules(userId)
}
suspend fun loadSchedules(scheduleDate: String? = null): Result<Unit> {
return try {
repository.loadSchedules(scheduleDate)
Result.success(Unit)
} catch (e: Exception) {
Result.failure(e)
}
}
}