Archived
PARSING HTML WORKS AND IT GETS SAVED TO THE DATABASE WOOO
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package com.denizk0461.studip.viewmodel
|
||||
|
||||
import android.app.Application
|
||||
import com.denizk0461.studip.model.StudIPEvent
|
||||
|
||||
class ParserViewModel(app: Application) : TemplateViewModel(app) {
|
||||
|
||||
fun insertEvent(event: StudIPEvent) { repo.insertEvent(event) }
|
||||
fun insertEvents(events: List<StudIPEvent>) { doAsync { repo.insertEvents(events) } }
|
||||
fun nukeEvents() { doAsync { repo.nukeEvents() } }
|
||||
}
|
||||
Reference in New Issue
Block a user