Archived
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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user