Structures

The following structures are available globally.

  • Custom network API error model.

    Subspec: Utility/APIError

    APIError(code: 0, message: "Something went wrong!")
    

    The APIError is a model that represents a network error that comes from an API response.

    See more

    Declaration

    Swift

    public struct APIError : Codable
  • Contains the event info that is used to add to the calendar.

    Subspec: Utility/CalendarPermissionsValidator

    EventCalendarInfo(title: title,
                      notes: description,
                      startDate: start,
                      endDate: start.addingTimeInterval(BusinessConstants.defaultEventInterval))
    

    The EventCalendarInfo model is used with the CalendarPermissionsValidator to encapsulate all of the data needed to add a new event.

    See more

    Declaration

    Swift

    public struct EventCalendarInfo