Skip to content

Refactor usecases#7

Merged
Entikore merged 2 commits intomainfrom
refactor-usecases
Aug 22, 2025
Merged

Refactor usecases#7
Entikore merged 2 commits intomainfrom
refactor-usecases

Conversation

@Entikore
Copy link
Copy Markdown
Owner

@Entikore Entikore commented Aug 22, 2025

Description

Simplified UseCases and handle ui loading state in ViewModels instead of UseCases.

Changes

List the specific changes made in this pull request.

  • Removed WorkResult.kt, ParamsUseCase.kt, ParamsSuspendUseCase.kt, SuspendUseCase.kt and UseCase.kt
  • Added BaseFetchUseCase.kt and BaseSuspendUseCase.kt
  • Refactored all UseCase implementations

Checklist

  • I have followed the coding style guidelines for this project.
  • I have added or updated relevant tests.
  • I have updated the documentation (if necessary).

…nstead. Renamed all "Get...UseCase" to "Fetch....UseCase". Moved ui state loading logic into ViewModels. Updated unit tests.
…ase.kt and ParamsSuspendUseCase.kt with BaseSuspendUseCase.kt
@Entikore Entikore self-assigned this Aug 22, 2025
@Entikore Entikore merged commit 78a025e into main Aug 22, 2025
1 check passed
@Entikore Entikore deleted the refactor-usecases branch August 22, 2025 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant