From 7ac7c224fe30ada6f50c590b92a81f7887c63d73 Mon Sep 17 00:00:00 2001 From: MM20 <15646950+MM2-0@users.noreply.github.com> Date: Sat, 27 Jul 2024 21:36:09 +0200 Subject: [PATCH] Add calendar plugin constants --- .../de/mm20/launcher2/plugin/PluginType.kt | 1 + .../contracts/CalendarPluginContract.kt | 50 +++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 core/shared/src/main/java/de/mm20/launcher2/plugin/contracts/CalendarPluginContract.kt diff --git a/core/shared/src/main/java/de/mm20/launcher2/plugin/PluginType.kt b/core/shared/src/main/java/de/mm20/launcher2/plugin/PluginType.kt index d530f5d4..153596d3 100644 --- a/core/shared/src/main/java/de/mm20/launcher2/plugin/PluginType.kt +++ b/core/shared/src/main/java/de/mm20/launcher2/plugin/PluginType.kt @@ -4,4 +4,5 @@ enum class PluginType { FileSearch, Weather, LocationSearch, + Calendar, } \ No newline at end of file diff --git a/core/shared/src/main/java/de/mm20/launcher2/plugin/contracts/CalendarPluginContract.kt b/core/shared/src/main/java/de/mm20/launcher2/plugin/contracts/CalendarPluginContract.kt new file mode 100644 index 00000000..2bc627ae --- /dev/null +++ b/core/shared/src/main/java/de/mm20/launcher2/plugin/contracts/CalendarPluginContract.kt @@ -0,0 +1,50 @@ +package de.mm20.launcher2.plugin.contracts + +abstract class CalendarPluginContract { + object EventColumns: Columns() { + /** + * The unique ID of the event. + */ + val Id = column("id") + + /** + * The title of the event. + */ + val Title = column("title") + + /** + * The description of the event. + */ + val Description = column("description") + + /** + * The location of the event. + */ + val Location = column("location") + + /** + * The start time of the event. + */ + val StartTime = column("start_time") + + /** + * The end time of the event. + */ + val EndTime = column("end_time") + + /** + * Whether the event is an all-day event. + */ + val AllDay = column("all_day") + + /** + * The color of the event. + */ + val Color = column("color") + + /** + * The attendees of the event. + */ + val Attendees = column>("attendees") + } +} \ No newline at end of file