File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed
presentation/src/main/java/com/stop/ui/alarmsetting Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change 1
1
package com.stop.ui.alarmsetting
2
2
3
+ import androidx.lifecycle.LiveData
4
+ import androidx.lifecycle.MutableLiveData
3
5
import androidx.lifecycle.ViewModel
4
6
5
7
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
+ )
You can’t perform that action at this time.
0 commit comments