-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #418 from GSM-MSG/feature/417_modify_the_methods_o…
…f_transfor_data_between_data_layer_and_domain_layer 🔀 :: (#417) - modify the methods of transfer data between data layer and domain layer
- Loading branch information
Showing
25 changed files
with
174 additions
and
221 deletions.
There are no files selected for viewing
28 changes: 0 additions & 28 deletions
28
app/src/main/java/com/msg/gcms/data/mapper/ApplicantMapper.kt
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
app/src/main/java/com/msg/gcms/data/mapper/ClubMemberMapper.kt
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
8 changes: 8 additions & 0 deletions
8
...ava/com/msg/gcms/data/remote/dto/applicant/get_applicant_list/GetApplicantListResponse.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,10 +1,18 @@ | ||
package com.msg.gcms.data.remote.dto.applicant.get_applicant_list | ||
|
||
import com.google.gson.annotations.SerializedName | ||
import com.msg.gcms.domain.data.applicant.get_applicant_list.GetApplicantListData | ||
|
||
data class GetApplicantListResponse( | ||
@SerializedName("scope") | ||
val userScope: String, | ||
@SerializedName("applicantList") | ||
val applicantList: List<ApplicantListResponse> | ||
) | ||
|
||
fun GetApplicantListResponse.toApplicantListData(): GetApplicantListData { | ||
return GetApplicantListData( | ||
applicantList = applicantList.map { it.toApplicantListData() }, | ||
userScope = userScope | ||
) | ||
} |
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
10 changes: 10 additions & 0 deletions
10
...in/java/com/msg/gcms/data/remote/dto/club_member/get_club_member/GetClubMemberResponse.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,10 +1,20 @@ | ||
package com.msg.gcms.data.remote.dto.club_member.get_club_member | ||
|
||
import com.google.gson.annotations.SerializedName | ||
import com.msg.gcms.domain.data.club_member.get_club_member.GetClubMemberData | ||
|
||
data class GetClubMemberResponse( | ||
@SerializedName("scope") | ||
val userScope: String, | ||
@SerializedName("clubMember") | ||
val requestUser: List<MemberResponse> | ||
) | ||
|
||
fun GetClubMemberResponse.toClubMemberData(): GetClubMemberData { | ||
return GetClubMemberData( | ||
userScope = userScope, | ||
requestUser = requestUser.map { | ||
it.toMemberData() | ||
} | ||
) | ||
} |
Oops, something went wrong.