Skip to content

Commit 069bbb7

Browse files
committed
feat: AlarmViewModel에 fakeAlarmUseCaseItem 생성
1 parent db8d37c commit 069bbb7

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed
Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,32 @@
11
package com.stop.ui.alarmsetting
22

3+
import androidx.lifecycle.LiveData
4+
import androidx.lifecycle.MutableLiveData
35
import androidx.lifecycle.ViewModel
46

57
class AlarmViewModel : ViewModel() {
6-
}
8+
private val _fakeAlarmUseCaseItem = MutableLiveData<AlarmUseCaseItem>()
9+
val fakeAlarmUseCaseItem: LiveData<AlarmUseCaseItem> = _fakeAlarmUseCaseItem
10+
11+
init {
12+
_fakeAlarmUseCaseItem.value = AlarmUseCaseItem(
13+
startPosition = "성복역 신분당선",
14+
endPosition = "이엔씨벤처드림타워3차",
15+
routes = listOf("성복역 승차", "강남역 환승", "구로디지털단지역 하차"),
16+
lastTime = "23시 50분",
17+
alarmTime = "23시 30분",
18+
alarmMethod = true,
19+
isMission = true
20+
)
21+
}
22+
}
23+
24+
data class AlarmUseCaseItem(
25+
val startPosition: String,
26+
val endPosition: String,
27+
val routes: List<String>,
28+
val lastTime: String,
29+
val alarmTime: String,
30+
val alarmMethod: Boolean,
31+
val isMission: Boolean
32+
)

0 commit comments

Comments
 (0)