-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[#284] 그룹 홈 화면 - 그룹보기 정렬 추가
- Loading branch information
Showing
15 changed files
with
306 additions
and
29 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
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
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
18 changes: 18 additions & 0 deletions
18
.../java/com/mashup/gabbangzip/sharedalbum/domain/usecase/config/GetHomeAlignStateUseCase.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.mashup.gabbangzip.sharedalbum.domain.usecase.config | ||
|
||
import com.mashup.gabbangzip.sharedalbum.domain.repository.ConfigRepository | ||
import dagger.Reusable | ||
import kotlinx.coroutines.flow.Flow | ||
import kotlinx.coroutines.flow.flow | ||
import javax.inject.Inject | ||
|
||
@Reusable | ||
class GetHomeAlignStateUseCase @Inject constructor( | ||
private val configRepository: ConfigRepository, | ||
) { | ||
operator fun invoke(): Flow<String> { | ||
return flow { | ||
emit(configRepository.getHomeAlignState()) | ||
} | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
...ain/java/com/mashup/gabbangzip/sharedalbum/domain/usecase/config/GetIsFirstOpenUseCase.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
14 changes: 14 additions & 0 deletions
14
...java/com/mashup/gabbangzip/sharedalbum/domain/usecase/config/SaveHomeAlignStateUseCase.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.mashup.gabbangzip.sharedalbum.domain.usecase.config | ||
|
||
import com.mashup.gabbangzip.sharedalbum.domain.repository.ConfigRepository | ||
import dagger.Reusable | ||
import javax.inject.Inject | ||
|
||
@Reusable | ||
class SaveHomeAlignStateUseCase @Inject constructor( | ||
private val configRepository: ConfigRepository, | ||
) { | ||
suspend operator fun invoke(alignState: String) { | ||
configRepository.saveHomeAlignState(alignState) | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
...in/java/com/mashup/gabbangzip/sharedalbum/domain/usecase/config/SaveIsFirstOpenUseCase.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
Oops, something went wrong.