Skip to content
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

Retrofit CallAdapter, Gson Converter 커스텀 #37

Open
heechokim opened this issue May 11, 2022 · 0 comments
Open

Retrofit CallAdapter, Gson Converter 커스텀 #37

heechokim opened this issue May 11, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@heechokim
Copy link
Collaborator

heechokim commented May 11, 2022

배경

  • #33 네트워크 베이스 코드 작성 PR 리뷰를 받던 중, 성규님께서 Retrofit CallAdapter와 Gson Converter를 조금 더 커스터마이징 할 수 있음을 알려주셨습니다.
  • 리뷰 내용을 바탕으로 추가 작업을 하고자 합니다.

image

내용

Before

interface ApiService {
    @GET("success")
    suspend fun getSuccess(): ApiResult<Success<Any>>
    @GET("failure")
    suspend fun getFailure(): ApiResult<Success<Any>>
}

After

interface ApiService {
    @GET("success")
    suspend fun getSuccess(): ApiResult<User>
    @GET("failure")
    suspend fun getFailure(): ApiResult<Room>
}

위 형태로 변경하는 것이 목표입니다.

참고 자료

@heechokim heechokim added the enhancement New feature or request label May 11, 2022
heechokim added a commit that referenced this issue May 31, 2022
- 리모트 푸시를 위한 커밋
@heechokim heechokim self-assigned this Jul 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant