-
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.
- Loading branch information
1 parent
d531e42
commit d745c0d
Showing
35 changed files
with
205 additions
and
222 deletions.
There are no files selected for viewing
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
25 changes: 25 additions & 0 deletions
25
app/src/main/java/com/example/pathfinder/data/mapper/ProjectMapper.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.example.pathfinder.data.mapper | ||
|
||
import com.example.pathfinder.data.model.Project | ||
import com.example.pathfinder.utils.Common.Companion.formatDate | ||
import com.example.pathfinder.utils.Common.Companion.formatEndDate | ||
import com.example.pathfinder.data.response.model.Project as ResponseProject | ||
|
||
fun responseProjectModelToDataModel( | ||
projectList: List<ResponseProject> | ||
): List<Project> { | ||
return projectList.map { project -> | ||
Project( | ||
id = project.id, | ||
author = project.author ?: "익명 유저", | ||
title = project.title, | ||
content = project.content, | ||
category = project.category, | ||
region = project.region, | ||
endTime = formatEndDate(project.endTime.toLong()), | ||
uploadTime = formatDate(project.uploadTime.toLong()), | ||
|
||
) | ||
} | ||
} | ||
|
28 changes: 14 additions & 14 deletions
28
app/src/main/java/com/example/pathfinder/data/mapper/SingleTeamBuildingMapper.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
28 changes: 0 additions & 28 deletions
28
app/src/main/java/com/example/pathfinder/data/mapper/TeamBuildingMapper.kt
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
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
6 changes: 3 additions & 3 deletions
6
...der/data/response/TeamBuildingResponse.kt → ...thfinder/data/response/ProjectResponse.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
6 changes: 3 additions & 3 deletions
6
...ta/response/TeamBuildingSingleResponse.kt → ...er/data/response/ProjectSingleResponse.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,11 +1,11 @@ | ||
package com.example.pathfinder.data.response | ||
|
||
import com.example.pathfinder.data.response.model.Team | ||
import com.example.pathfinder.data.response.model.Project | ||
import com.google.gson.annotations.SerializedName | ||
|
||
data class TeamBuildingSingleResponse( | ||
data class ProjectSingleResponse( | ||
|
||
@SerializedName("project") | ||
val team: Team | ||
val project: Project | ||
|
||
) |
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
4 changes: 0 additions & 4 deletions
4
...c/main/java/com/example/pathfinder/data/source/remote/board/BoardWriteRemoteDataSource.kt
This file was deleted.
Oops, something went wrong.
15 changes: 6 additions & 9 deletions
15
...ce/remote/teamBuilding/TeamBuildingApi.kt → .../data/source/remote/project/ProjectApi.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
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
4 changes: 0 additions & 4 deletions
4
...m/example/pathfinder/data/source/remote/teamBuilding/TeamBuildingWriteRemoteDadaSource.kt
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
Oops, something went wrong.