-
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
Showing
2 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
app/src/main/java/com/sopt/carrot/presentation/home/TodayPopularityJob.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,12 @@ | ||
package com.sopt.carrot.presentation.home | ||
|
||
data class TodayPopularityJob( | ||
val id: Int, | ||
val ranking:String, | ||
val title: String, | ||
val detail: String, | ||
val interest: String, | ||
val check: String, | ||
val salary: String | ||
|
||
) |
53 changes: 53 additions & 0 deletions
53
app/src/main/java/com/sopt/carrot/presentation/home/TodayPopularityJobViewModel.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,53 @@ | ||
package com.sopt.carrot.presentation.home | ||
|
||
import androidx.lifecycle.ViewModel | ||
|
||
class TodayPopularityJobViewModel : ViewModel() { | ||
val mockTodayPopularityJobLists = listOf( | ||
TodayPopularityJob( | ||
id = 0, | ||
ranking = "1위", | ||
title = "단기임대 청소", | ||
detail = "이문동", | ||
interest = "20", | ||
check = "1090", | ||
salary = "10만원" | ||
), | ||
TodayPopularityJob( | ||
id = 1, | ||
ranking = "2위", | ||
title = "음식점 오전 청소 알바구합니다", | ||
detail = "강남역\t\t논현역", | ||
interest = "10", | ||
check = "900", | ||
salary = "250만원" | ||
), | ||
TodayPopularityJob( | ||
id = 2, | ||
ranking = "3위", | ||
title = "주방알바", | ||
detail = "종로", | ||
interest = "8", | ||
check = "800", | ||
salary = "10,000원" | ||
), | ||
TodayPopularityJob( | ||
id = 3, | ||
ranking = "4위", | ||
title = "매장관리 및 판매직원", | ||
detail = "공릉동", | ||
interest = "5", | ||
check = "675", | ||
salary = "2만원" | ||
), | ||
TodayPopularityJob( | ||
id = 4, | ||
ranking = "5위", | ||
title = "야간포장직원 모집", | ||
detail = "건대입구", | ||
interest = "4", | ||
check = "200", | ||
salary = "30,000원" | ||
) | ||
) | ||
} |