Skip to content

Commit

Permalink
feature #13: MyUseCase
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeeum committed Dec 6, 2024
1 parent 0f51c4f commit 0a6499f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/src/main/java/org/sopt/and/domain/usecase/MyUseCase.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package org.sopt.and.domain.usecase

import org.sopt.and.domain.entity.response.ResponseHobbyEntity
import org.sopt.and.domain.repository.WavveRepository
import javax.inject.Inject

class MyUseCase @Inject constructor(
private val myRepository: WavveRepository
) {
suspend operator fun invoke(): Result<ResponseHobbyEntity> =
myRepository.getHobby()
}

0 comments on commit 0a6499f

Please sign in to comment.