Skip to content

Commit

Permalink
#7 Add auth entity mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Heonbyeong committed Jul 12, 2022
1 parent b7f88c1 commit dc22e81
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions data/src/main/java/com/knowing/data/mapper/AuthMapper.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.knowing.data.mapper

import com.knowing.data.remote.response.FetchGoogleSignInResponse
import com.knowing.domain.base.entity.auth.FetchGoogleSignInResponseEntity

object AuthMapper {
fun mapperToFetchGoogleLoginEntity(fetchGoogleSignInResponse: FetchGoogleSignInResponse) =
fetchGoogleSignInResponse.run {
FetchGoogleSignInResponseEntity(
access_token, refresh_token, is_first_login
)
}
}

0 comments on commit dc22e81

Please sign in to comment.