toggle menu
BIT App
androidJvm
switch theme
search in API
bitapp
/
com.atech.bit.ui.screens.course
/
CourseViewModel
Course
View
Model
class
CourseViewModel
@
Inject
constructor
(
useCase
:
SyllabusUseCase
,
kTorUseCase
:
KTorUseCase
,
pref
:
SharedPreferences
)
:
ViewModel
Members
Constructors
Course
View
Model
Link copied to clipboard
@
Inject
constructor
(
useCase
:
SyllabusUseCase
,
kTorUseCase
:
KTorUseCase
,
pref
:
SharedPreferences
)
Types
One
Time
Event
Link copied to clipboard
interface
OneTimeEvent
Properties
course
Details
Link copied to clipboard
val
courseDetails
:
CourseDetails
?
current
Click
Item
Link copied to clipboard
val
currentClickItem
:
State
<
CourseDetailModel
>
current
Sem
Link copied to clipboard
val
currentSem
:
State
<
Int
>
is
Selected
Link copied to clipboard
val
isSelected
:
State
<
Boolean
>
lab
Link copied to clipboard
val
lab
:
StateFlow
<
PagingData
<
SyllabusUIModel
>
>
one
Time
Event
Link copied to clipboard
val
oneTimeEvent
:
SharedFlow
<
CourseViewModel.OneTimeEvent
>
online
Syllabus
Link copied to clipboard
val
onlineSyllabus
:
State
<
Triple
<
List
<
SyllabusUIModel
>
,
List
<
SyllabusUIModel
>
,
List
<
SyllabusUIModel
>
>
>
pe
Link copied to clipboard
val
pe
:
StateFlow
<
PagingData
<
SyllabusUIModel
>
>
theory
Link copied to clipboard
val
theory
:
StateFlow
<
PagingData
<
SyllabusUIModel
>
>
Functions
add
Closeable
Link copied to clipboard
open
fun
addCloseable
(
@
NonNull
p0
:
Closeable
)
on
Event
Link copied to clipboard
fun
onEvent
(
events
:
CourseEvents
)