Skip to content

[FEAT/#6] 내 옐로 / 목데이터 구현#8

Merged
kkk5474096 merged 18 commits intodevelopfrom
feature/#6-yello-mock-server
Jun 30, 2023
Merged

[FEAT/#6] 내 옐로 / 목데이터 구현#8
kkk5474096 merged 18 commits intodevelopfrom
feature/#6-yello-mock-server

Conversation

@kkk5474096
Copy link
Copy Markdown
Contributor

⛳️ Work Description

  • 내 옐로 모두 조회
  • yello 상세 조회
  • 키워드 확인
  • 이름 부분 확인

📢 To Reviewers

  • 디자인 나오면 디자인에다가 연결한 서버 붙일 예정입니다.

@kkk5474096 kkk5474096 added FEAT ✨ 새로운 기능 구현 강민 🦖 Kangmin's Task labels Jun 29, 2023
@kkk5474096 kkk5474096 added this to the JSON 통신 구현 milestone Jun 29, 2023
@kkk5474096 kkk5474096 requested a review from a team June 29, 2023 14:10
@kkk5474096 kkk5474096 self-assigned this Jun 29, 2023
Copy link
Copy Markdown
Member

@minju1459 minju1459 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

정말 수고하셨습니다!! 저도 추후에 이 코드들 토대로 서버 통신해보겠습니당 강멘 !!

Copy link
Copy Markdown
Member

@b1urrrr b1urrrr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이강민그는감히전설이라고할수있다

Comment on lines +22 to +23
initView()
observe()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오 함수화 이렇게 하니까 가독성 넘 좋네요!!

Comment on lines +29 to +30
<activity android:name=".presentation.yello.YelloActivity"
android:exported="false" />
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<activity android:name=".presentation.yello.YelloActivity"
android:exported="false" />
<activity android:name=".presentation.yello.YelloActivity"
android:screenOrientation="portrait"
android:exported="false" />

가로 막아버리는 거 어떤가여

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

사실 내 뷰 아마도 fragment라서 이거 임시 액티비티! @b1urrrr

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아하!

Comment on lines +13 to +33
interface YelloService {
@GET("yello")
suspend fun getMyYelloList(
@Query("page") page: Int
): BaseResponse<ResponseMyYello>

@GET("yello/{id}/name")
suspend fun getYelloDetail(
@Path("id") id: Long
): BaseResponse<ResponseYelloDetail>

@POST("yello/{id}/keyword")
suspend fun checkKeyword(
@Path("id") id: Long
): BaseResponse<ResponseCheckKeyword>

@POST("yello/{id}/name")
suspend fun checkName(
@Path("id") id: Long
): BaseResponse<ResponseCheckName>
} No newline at end of file
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

강멘

Comment on lines +22 to +32
private val _myYelloData = MutableStateFlow<UiState<MyYello>>(UiState.Loading)
val myYelloData: StateFlow<UiState<MyYello>> = _myYelloData.asStateFlow()

private val _yelloDetailData = MutableStateFlow<UiState<YelloDetail>>(UiState.Loading)
val yelloDetailData: StateFlow<UiState<YelloDetail>> = _yelloDetailData.asStateFlow()

private val _keywordData = MutableStateFlow<UiState<CheckKeyword>>(UiState.Loading)
val keywordData: StateFlow<UiState<CheckKeyword>> = _keywordData.asStateFlow()

private val _nameData = MutableStateFlow<UiState<CheckName>>(UiState.Loading)
val nameData: StateFlow<UiState<CheckName>> = _nameData.asStateFlow()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

플로우 맛있다~

Comment on lines +16 to +23
fun getUiStateModel(): UiStateModel {
return UiStateModel(
this is Empty,
this is Loading,
this is Success,
this is Failure
)
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오오 이걸로 분기처리하게 만들 수 있군요 잘 배워갑니당

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@b1urrrr 이거 나중에 Ui랑 databinding으로 묶어서 한번에 처리하는 마술 보여줄게용

@kkk5474096 kkk5474096 merged commit 05dfd54 into develop Jun 30, 2023
@kkk5474096 kkk5474096 changed the title [CHORE/#6] 내 옐로 / 목데이터 구현 [FEAT/#6] 내 옐로 / 목데이터 구현 Jul 4, 2023
@b1urrrr b1urrrr deleted the feature/#6-yello-mock-server branch July 4, 2023 08:18
@b1urrrr b1urrrr added the PULL REQUEST 🚀 pull reqeust 날리기 label Jul 4, 2023
@hansh0101
Copy link
Copy Markdown
Collaborator

즐거워 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FEAT ✨ 새로운 기능 구현 PULL REQUEST 🚀 pull reqeust 날리기 강민 🦖 Kangmin's Task

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[FEAT] 내 옐로 / 목데이터 구현

4 participants