diff --git a/app/src/main/java/com/sopt/carrot/presentation/home/TodayPopularityJob.kt b/app/src/main/java/com/sopt/carrot/presentation/home/TodayPopularityJob.kt new file mode 100644 index 0000000..260fddb --- /dev/null +++ b/app/src/main/java/com/sopt/carrot/presentation/home/TodayPopularityJob.kt @@ -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 + +) \ No newline at end of file diff --git a/app/src/main/java/com/sopt/carrot/presentation/home/TodayPopularityJobViewModel.kt b/app/src/main/java/com/sopt/carrot/presentation/home/TodayPopularityJobViewModel.kt new file mode 100644 index 0000000..f90abf3 --- /dev/null +++ b/app/src/main/java/com/sopt/carrot/presentation/home/TodayPopularityJobViewModel.kt @@ -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원" + ) + ) +} \ No newline at end of file