Open georgehrke opened 8 years ago
@tcitworld @DeepDiver1975 your opinion?
also calendar.publish()
and calendar.unpublish()
for public sharing
I don't see why not except that the Calendar model is going to be quite huge. Also, only the Calendar model (and subscriptions at some point) would make use of the remaining methods inside CalendarService, so that doesn't changes much.
Whats about moving some of the caldav calls into the
Calendar
model itself. TheCalendarService
would keepget
,getAll
andcreate
. but:calendar.update()
instead ofCalendarService.update(calendar)
calendar.delete()
instead ofCalendarService.delete(calendar)
calendar.share(...)
instead ofCalendarService.share(calendar, ...)
calendar.unshare(...)
instead ofCalendarService.unshare(calendar, ...)