-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
43 changed files
with
953 additions
and
1,544 deletions.
There are no files selected for viewing
12 changes: 0 additions & 12 deletions
12
core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SortBy.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.terning.core.type | ||
|
||
import androidx.annotation.StringRes | ||
import com.terning.core.R | ||
|
||
enum class Grade( | ||
val stringValue: String, | ||
@StringRes val stringResId: Int, | ||
) { | ||
FRESHMAN("freshman", R.string.change_filter_grade_1), | ||
SOPHOMORE("sophomore", R.string.change_filter_grade_2), | ||
JUNIOR("junior", R.string.change_filter_grade_3), | ||
SENIOR("senior", R.string.change_filter_grade_4); | ||
|
||
companion object { | ||
fun fromString(value: String?): Grade = when (value) { | ||
"freshman" -> FRESHMAN | ||
"sophomore" -> SOPHOMORE | ||
"junior" -> JUNIOR | ||
"senior" -> SENIOR | ||
else -> FRESHMAN | ||
} | ||
} | ||
} |
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,15 @@ | ||
package com.terning.core.type | ||
|
||
import androidx.annotation.StringRes | ||
import com.terning.core.R | ||
|
||
enum class SortBy( | ||
@StringRes val sortBy: Int, | ||
val type: String, | ||
) { | ||
EARLIEST(R.string.sort_by_earliest, "deadlineSoon"), | ||
SHORTEST(R.string.sort_by_shortest, "shortestDuration"), | ||
LONGEST(R.string.sort_by_longest, "longestDuration"), | ||
SCRAP(R.string.sort_by_scrap, "mostScrapped"), | ||
VIEW_COUNT(R.string.sort_by_view_count, "mostViewed"), | ||
} |
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,22 @@ | ||
package com.terning.core.type | ||
|
||
import androidx.annotation.StringRes | ||
import com.terning.core.R | ||
|
||
enum class WorkingPeriod( | ||
val stringValue: String, | ||
@StringRes val stringResId: Int, | ||
) { | ||
SHORT("short", R.string.change_filter_period_1), | ||
MIDDLE("middle", R.string.change_filter_period_2), | ||
LONG("long", R.string.change_filter_period_3); | ||
|
||
companion object { | ||
fun fromString(value: String?): WorkingPeriod = when (value) { | ||
"short" -> SHORT | ||
"middle" -> MIDDLE | ||
"long" -> LONG | ||
else -> SHORT | ||
} | ||
} | ||
} |
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
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: 5 additions & 5 deletions
10
...data/mapper/home/HomeTodayInternMapper.kt β ...a/mapper/home/HomeUpcomingInternMapper.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,17 +1,17 @@ | ||
package com.terning.data.mapper.home | ||
|
||
import com.terning.data.dto.response.HomeTodayInternResponseDto | ||
import com.terning.domain.entity.home.HomeTodayIntern | ||
import com.terning.data.dto.response.HomeUpcomingInternResponseDto | ||
import com.terning.domain.entity.home.HomeUpcomingIntern | ||
|
||
fun HomeTodayInternResponseDto.toHomeTodayInternList(): HomeTodayIntern = | ||
HomeTodayIntern( | ||
scrapId = this.scrapId, | ||
fun HomeUpcomingInternResponseDto.toHomeUpcomingInternList(): HomeUpcomingIntern = | ||
HomeUpcomingIntern( | ||
internshipAnnouncementId = this.internshipAnnouncementId, | ||
companyImage = this.companyImage, | ||
title = this.title, | ||
dDay = this.dDay, | ||
deadline = this.deadline, | ||
workingPeriod = this.workingPeriod, | ||
isScrapped = this.isScrapped, | ||
startYearMonth = this.startYearMonth, | ||
color = this.color, | ||
) |
Oops, something went wrong.