-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Encapsulate Task Operations in TaskUseCase
Introduced a sealed class `TaskUseCase` to encapsulate various operations on tasks, including: - Observing all tasks (`ObserveAll`). - Observing a task by UID (`ObserveByUid`). - Inserting a new task (`Insert`). - Updating a task by ID (`UpdateById`). - Deleting a task by ID (`DeleteById`). Each use case leverages the `TaskRepository` for data access. This change improves code organization and maintainability by centralizing task-related logic.
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters