EventData
public struct EventData : ContentUsed to obtain an event’s details.
Returned by:
- GET /api/v3/events
- GET /api/v3/events/favorites
See EventController.eventsHandler(_:), EventController.favoritesHandler(_:).
- 
                  
                  The event’s ID. This is the Swiftarr database record for this event. DeclarationSwift var eventID: UUID
- 
                  
                  The event’s UID. This is the VCALENDAR/ICS File/sched.com identifier for this event–what calendar software uses to correllate whether 2 events are the same event. DeclarationSwift var uid: String
- 
                  
                  The event’s title. DeclarationSwift var title: String
- 
                  
                  A description of the event. DeclarationSwift var description: String
- 
                  
                  Starting time of the event DeclarationSwift var startTime: Date
- 
                  
                  Ending time of the event. DeclarationSwift var endTime: Date
- 
                  
                  The timezone that the ship is going to be in when the event occurs. Delivered as an abbreviation e.g. “EST”. DeclarationSwift var timeZone: String
- 
                  
                  The timezone ID that the ship is going to be in when the event occurs. Example: “America/New_York”. DeclarationSwift var timeZoneID: String
- 
                  
                  The location of the event. DeclarationSwift var location: String
- 
                  
                  The event category. DeclarationSwift var eventType: String
- 
                  
                  The last time data for this event was modified. Used for change management. DeclarationSwift var lastUpdateTime: Date
- 
                  
                  The event’s associated Forum.DeclarationSwift var forum: UUID?
- 
                  
                  Whether user has favorited event. DeclarationSwift var isFavorite: Bool
- 
                  
                  Makes an eventData. The startTime, endTime, and timeZone are the corrected Date values for the event, given the time zone the ship was/will be in at the event start time. DeclarationSwift init(_ event: Event, isFavorite: Bool = false) throws
 View on GitHub
            View on GitHub
           EventData Structure Reference
      EventData Structure Reference