Struct CalendarEvent

Struct Documentation

struct CalendarEvent

Represents a Google Calendar event.

Public Functions

inline bool isActiveNow() const

Check if the event is currently active (ongoing)

inline bool hasStartedWithinMinutes(int minutes) const

Check if the event has started within the last N minutes.

inline bool willStartWithinMinutes(int minutes) const

Check if the event will start within the next N minutes.

inline bool hasEnded() const

Check if the event has ended.

inline int minutesUntilStart() const

Get minutes until event starts (negative if already started)

Public Members

std::string id
std::string title
std::string calendar_name
std::string location
std::string description
std::chrono::system_clock::time_point start_time
std::chrono::system_clock::time_point end_time
bool is_all_day = false