-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e234a5e
commit 067cc19
Showing
4 changed files
with
27 additions
and
17 deletions.
There are no files selected for viewing
19 changes: 11 additions & 8 deletions
19
domain/src/main/java/com/dongguk/telepigeon/domain/usecase/GetMonthlyReportUseCase.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
package com.dongguk.telepigeon.domain.usecase | ||
|
||
import com.dongguk.telepigeon.domain.repository.QuestionAnswerRepository | ||
import javax.inject.Inject | ||
import javax.inject.Singleton | ||
|
||
@Singleton | ||
class GetMonthlyReportUseCase( | ||
private val questionAnswerRepository: QuestionAnswerRepository, | ||
) { | ||
suspend operator fun invoke( | ||
roomId: Int, | ||
date: String, | ||
) = questionAnswerRepository.getMonthlyReport(roomId = roomId, date = date) | ||
} | ||
class GetMonthlyReportUseCase | ||
@Inject | ||
constructor( | ||
private val questionAnswerRepository: QuestionAnswerRepository, | ||
) { | ||
suspend operator fun invoke( | ||
roomId: Int, | ||
date: String, | ||
) = questionAnswerRepository.getMonthlyReport(roomId = roomId, date = date) | ||
} |
21 changes: 12 additions & 9 deletions
21
domain/src/main/java/com/dongguk/telepigeon/domain/usecase/GetQuestionAnswerUseCase.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
package com.dongguk.telepigeon.domain.usecase | ||
|
||
import com.dongguk.telepigeon.domain.repository.QuestionAnswerRepository | ||
import javax.inject.Inject | ||
import javax.inject.Singleton | ||
|
||
@Singleton | ||
class GetQuestionAnswerUseCase( | ||
private val questionAnswerRepository: QuestionAnswerRepository, | ||
) { | ||
suspend operator fun invoke( | ||
roomId: Int, | ||
date: String?, | ||
respondent: Boolean, | ||
) = questionAnswerRepository.getQuestionAnswer(roomId = roomId, date = date, respondent = respondent) | ||
} | ||
class GetQuestionAnswerUseCase | ||
@Inject | ||
constructor( | ||
private val questionAnswerRepository: QuestionAnswerRepository, | ||
) { | ||
suspend operator fun invoke( | ||
roomId: Int, | ||
date: String?, | ||
respondent: Boolean, | ||
) = questionAnswerRepository.getQuestionAnswer(roomId = roomId, date = date, respondent = respondent) | ||
} |
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
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