-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat-more-api-connection
- Loading branch information
Showing
13 changed files
with
135 additions
and
81 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
33 changes: 13 additions & 20 deletions
33
app/src/main/java/org/sopt/pingle/data/model/remote/response/ResponseJoinGroupSearchDto.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,28 +1,21 @@ | ||
package org.sopt.pingle.data.model.remote.response | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
import org.sopt.pingle.domain.model.JoinGroupSearchEntity | ||
|
||
@Serializable | ||
data class ResponseJoinGroupSearchDto( | ||
@SerialName("code") | ||
val code: Int, | ||
@SerialName("code") | ||
val message: String, | ||
@SerialName("code") | ||
val data: List<Data> | ||
@SerialName("id") | ||
val id: Int, | ||
@SerialName("name") | ||
val name: String, | ||
@SerialName("keyword") | ||
val keyword: String | ||
) { | ||
data class Data( | ||
@SerialName("code") | ||
val id: Int, | ||
@SerialName("code") | ||
val name: String, | ||
@SerialName("code") | ||
val keyword: String | ||
) { | ||
fun toJoinGroupSearchEntity() = JoinGroupSearchEntity( | ||
id = this.id, | ||
keyword = this.keyword, | ||
name = this.name | ||
) | ||
} | ||
fun toJoinGroupSearchEntity() = JoinGroupSearchEntity( | ||
id = this.id, | ||
keyword = this.keyword, | ||
name = this.name | ||
) | ||
} |
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
12 changes: 12 additions & 0 deletions
12
app/src/main/java/org/sopt/pingle/domain/usecase/GetJoinGroupSearchUseCase.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,12 @@ | ||
package org.sopt.pingle.domain.usecase | ||
|
||
import kotlinx.coroutines.flow.Flow | ||
import org.sopt.pingle.domain.model.JoinGroupSearchEntity | ||
import org.sopt.pingle.domain.repository.JoinGroupRepository | ||
|
||
class GetJoinGroupSearchUseCase( | ||
private val joinGroupRepository: JoinGroupRepository | ||
) { | ||
operator fun invoke(teamName: String): Flow<List<JoinGroupSearchEntity>> = | ||
joinGroupRepository.getJoinGroupSearch(teamName = teamName) | ||
} |
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
Oops, something went wrong.