Implemented functionality for adding a new event manually; added floating action buttons for adding an event and refreshing the canteen offers

This commit is contained in:
denizk0461
2023-05-03 14:16:32 +02:00
parent ae8db7ce48
commit df1d127a17
18 changed files with 416 additions and 155 deletions
@@ -5,6 +5,13 @@ import com.denizk0461.studip.model.StudIPEvent
class ScheduleUpdateViewModel(application: Application) : AppViewModel(application) {
/**
* Inserts a new schedule element.
*
* @param event the event to save
*/
fun insert(event: StudIPEvent) { doAsync { repo.insert(event) } }
/**
* Updates a schedule element.
*