Add calendar plugin constants

This commit is contained in:
MM20 2024-07-27 21:36:09 +02:00
parent f635a4dc33
commit 7ac7c224fe
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389
2 changed files with 51 additions and 0 deletions

View File

@ -4,4 +4,5 @@ enum class PluginType {
FileSearch,
Weather,
LocationSearch,
Calendar,
}

View File

@ -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<String>("id")
/**
* The title of the event.
*/
val Title = column<String>("title")
/**
* The description of the event.
*/
val Description = column<String>("description")
/**
* The location of the event.
*/
val Location = column<String>("location")
/**
* The start time of the event.
*/
val StartTime = column<Long>("start_time")
/**
* The end time of the event.
*/
val EndTime = column<Long>("end_time")
/**
* Whether the event is an all-day event.
*/
val AllDay = column<Boolean>("all_day")
/**
* The color of the event.
*/
val Color = column<Int>("color")
/**
* The attendees of the event.
*/
val Attendees = column<List<String>>("attendees")
}
}