Skip to content

Commit

Permalink
[CHORE/#77] enum class 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyobeen-Park committed Jul 17, 2024
1 parent 35de310 commit 65a599f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import com.terning.domain.entity.response.HomeTodayInternModel
import com.terning.domain.repository.HomeRepository
import com.terning.feature.R
import com.terning.feature.home.home.model.InternFilterData
import com.terning.feature.home.home.model.SortBy
import com.terning.feature.home.home.model.UserNameState
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableSharedFlow
Expand Down Expand Up @@ -87,12 +88,4 @@ class HomeViewModel @Inject constructor(
}
}
}

enum class SortBy(val sortBy: String) {
EARLIEST("deadlineSoon"),
SHORTEST("shortestDuration"),
LONGEST("longestDuration"),
SCRAP("mostScrapped"),
VIEW_COUNT("mostViewed"),
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.terning.feature.home.home.model

enum class SortBy(val sortBy: String) {
EARLIEST("deadlineSoon"),
SHORTEST("shortestDuration"),
LONGEST("longestDuration"),
SCRAP("mostScrapped"),
VIEW_COUNT("mostViewed"),
}

0 comments on commit 65a599f

Please sign in to comment.