Skip to content

Commit

Permalink
chore/#17 : 타입 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
shinythinking committed Feb 18, 2025
1 parent 3a6b629 commit 2c89107
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package com.boostcamp.mapisode.home.common

import androidx.annotation.DrawableRes

data class AiOption(
val image: String,
val type: OptionType,
@DrawableRes val icon: Int,
val text: String,
val prompt: String,
)
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.boostcamp.mapisode.home.common

import com.boostcamp.mapisode.designsystem.R
import com.boostcamp.mapisode.model.GroupModel
import kotlinx.collections.immutable.persistentListOf
import java.util.Date
Expand Down Expand Up @@ -42,24 +43,40 @@ object HomeConstant {
const val NUM_OF_COLUMNS = 2
val options = persistentListOf(
AiOption(
image = "https://avatars.githubusercontent.com/u/127717111?v=4",
text = "Option 1",
prompt = "Prompt 1"
type = OptionType.RESTAURANT,
icon = R.drawable.ic_restaurant,
text = "식당!",
prompt = "Prompt 1",
),
AiOption(
image = "https://avatars.githubusercontent.com/u/127717111?v=4",
text = "Option 2",
type = OptionType.CAFE,
icon = R.drawable.ic_cafe,
text = "카페!",
prompt = "Prompt 2"
),
AiOption(
image = "https://avatars.githubusercontent.com/u/127717111?v=4",
text = "Option 3",
type = OptionType.CALM,
icon = R.drawable.ic_calm,
text = "차분한",
prompt = "Prompt 3"
),
AiOption(
image = "https://avatars.githubusercontent.com/u/127717111?v=4",
text = "Option 4",
type = OptionType.MEETING,
icon = R.drawable.ic_meeting,
text = "모임하기 좋은",
prompt = "Prompt 4"
),
AiOption(
type = OptionType.WITH_PET,
icon = R.drawable.ic_pet,
text = "애완동물과",
prompt = "Prompt 5"
),
AiOption(
type = OptionType.WALKING,
icon = R.drawable.ic_walk,
text = "산책하기 좋은",
prompt = "Prompt 6"
)
)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.boostcamp.mapisode.home.common

enum class OptionType {
NONE,
RESTAURANT,
CAFE,
CALM,
MEETING,
WITH_PET,
WALKING,
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.boostcamp.mapisode.home.common

enum class ResultType {
enum class ResultViewType {
LIST_VIEW,
MAP_VIEW,
}

0 comments on commit 2c89107

Please sign in to comment.