This repository has been archived on 2026-05-26. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
weserplaner/app/src/main/java/com/denizk0461/studip/viewmodel/EventViewModel.kt
T

20 lines
528 B
Kotlin
Raw Normal View History

2023-04-08 17:30:05 +02:00
package com.denizk0461.studip.viewmodel
import android.app.Application
import androidx.lifecycle.LiveData
2023-04-08 18:53:51 +02:00
import com.denizk0461.studip.model.StudIPEvent
2023-04-08 17:30:05 +02:00
/**
* View model for [com.denizk0461.studip.fragment.EventFragment]
*
* @param app reference to the app
*/
2023-04-08 17:30:05 +02:00
class EventViewModel(app: Application) : TemplateViewModel(app) {
/**
* Retrieves all Stud.IP events.
*
* @return all Stud.IP events exposed through a LiveData object
*/
2023-04-08 17:30:05 +02:00
val allEvents: LiveData<List<StudIPEvent>> = repo.allEvents
}