added and updated models

This commit is contained in:
timurgordon
2025-05-12 01:54:47 +03:00
parent f388fde388
commit 52528ca99f
25 changed files with 734 additions and 182 deletions

View File

@@ -10,20 +10,6 @@ pub enum EventStatus {
tentative
}
// EventColor represents the color categorization of a calendar event
pub enum EventColor {
red
blue
green
yellow
purple
orange
cyan
magenta
gray
custom // For custom color values
}
// EventVisibility represents the visibility setting of a calendar event
pub enum EventVisibility {
public
@@ -41,7 +27,7 @@ pub enum AttendeeResponse {
// Calendar represents a collection of events
pub struct Calendar {
base.Base
base.Base // Provides id u32, creation_time, mod_time, comments []u32
pub mut:
name string // Name of the calendar
description string // Description of the calendar
@@ -74,7 +60,6 @@ pub mut:
attendees []Attendee // List of attendees
organizer u32 // The user (see circle) who created the event
status EventStatus // Status of the event
color EventColor // User-friendly color categorization
reminders []Reminder // Reminders for this event
timezone string // Timezone for this specific event
visibility EventVisibility // Visibility setting for the event