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.
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
|
|
|
|
|
|
|
|
class EventViewModel(app: Application) : TemplateViewModel(app) {
|
|
|
|
|
|
|
|
|
|
val allEvents: LiveData<List<StudIPEvent>> = repo.allEvents
|
|
|
|
|
|
|
|
|
|
fun insertEvent(event: StudIPEvent) { repo.insertEvent(event) }
|
|
|
|
|
fun nukeEvents() { repo.nukeEvents() }
|
|
|
|
|
}
|