-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[faet] 기존단체입장 초대코드 api 통신 #108
Conversation
# Conflicts: # app/src/main/java/org/sopt/pingle/di/DataSourceModule.kt # app/src/main/java/org/sopt/pingle/di/RepositoryModule.kt # app/src/main/java/org/sopt/pingle/di/ServiceModule.kt # app/src/main/java/org/sopt/pingle/di/UseCaseModule.kt
저기 영상이 안 보여요 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니당 ~~~~
app/src/main/AndroidManifest.xml
Outdated
android:exported="false" | ||
android:exported="true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
선생님 수정 부탁드려염 ~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RequestJoinGroupCodeEntityMapper
fun toRequestJoinGroupCode() = RequestJoinGroupCodeEntity( | ||
code = this.code | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 사용 되나요? 사용되지 않는다면 지워줍시다
@POST("$VERSION/$TEAMS/{$TEAM_ID}/$REGISTER") | ||
suspend fun postJoinGroupCode( | ||
@Path("$TEAM_ID") teamId: Int, | ||
@Body code: RequestJoinGroupCodeDto |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Body code: RequestJoinGroupCodeDto | |
@Body requestJoinGroupCodeDto: RequestJoinGroupCodeDto |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아 이거 네이밍 기깔나는 거 없낭 ㅋ
is UiState.Error -> Timber.tag(JOIN_GROUP_CODE_ACTIVITY).d(uiState.message) | ||
|
||
is UiState.Loading -> Timber.tag(JOIN_GROUP_CODE_ACTIVITY).d(LOADING) | ||
|
||
is UiState.Empty -> Timber.tag(JOIN_GROUP_CODE_ACTIVITY).d(EMPTY) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
꼼꼼하다 꼼꼼해
PingleSnackbar.makeSnackbar( | ||
binding.root, | ||
getString(R.string.join_group_code_snackbar_message), | ||
97 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저기,, 혹시 얘도 dimen 이용하거나 상수화 해주실 수 있으실지,,
participantCount = 200 | ||
) | ||
fun getJoinGroupInfo(teamId: Int) { | ||
_joinGroupCodeState.value = UiState.Loading |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네이밍이 JoingGroupInfoState가 되어야 하지 않을까요? 넘 헷갈리는디 ㅜ
|
||
fun postJoinGroupCode(teamId: Int, code: RequestJoinGroupCodeEntity) { | ||
_joinGroupCode.value = UiState.Loading |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
얘도 joinGroupCodeState로 바꿔주세요
viewModelScope.launch { | ||
_joinGroupCodeState.value = UiState.Loading | ||
runCatching { | ||
getJoinGroupInfoUseCase.invoke(teamId = teamId).collect { joinGroupInfo -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getJoinGroupInfoUseCase.invoke(teamId = teamId).collect { joinGroupInfo -> | |
getJoinGroupInfoUseCase(teamId = teamId).collect { joinGroupInfo -> |
유즈케이스에서 invoke를 재정의 했기 때문에 이렇게 사용 가능합니다 나머지도 고쳐주세오
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다 머지하세요 !
Related issue 🛠
Work Description ✏️
Screenshot 📸
Recording_2024-01-12-03-13-11.mp4
Uncompleted Tasks 😅
N/A
To Reviewers 📢
어렵네요..........