20 lines
551 B
Dart
20 lines
551 B
Dart
import '../domain/course_occurrence.dart';
|
|
|
|
class DeviceCalendar {
|
|
const DeviceCalendar(this.id, this.name);
|
|
final String id, name;
|
|
}
|
|
|
|
abstract class CalendarService {
|
|
Future<bool> requestAccess();
|
|
Future<List<DeviceCalendar>> listWritableCalendars();
|
|
Future<Map<String, String>> sync(
|
|
List<CourseOccurrence> occurrences,
|
|
String calendarId,
|
|
Map<String, String> knownEventIds,
|
|
);
|
|
Future<void> deleteOwned(Map<String, String> eventIds);
|
|
Future<Map<String, String>> ownedEventIds(String calendarId) async =>
|
|
const {};
|
|
}
|