Structures

The following structures are available globally.

  • Represents a discount that can be redeemed by the user.

    See more

    Declaration

    Swift

    struct Coupon : Codable
  • Structure for displaying trip segments on a MKMapView

    See more

    Declaration

    Swift

    struct LocationsSegment
  • Represent an active ticket recived from the backend. Since we are mocking tickets, there is no need for security.

    See more

    Declaration

    Swift

    struct Ticket : Codable
  • Should represent a continuous travel on public transport.

    See more

    Declaration

    Swift

    struct Trip : Codable
  • A GPS location

    See more

    Declaration

    Swift

    struct Location : Codable
  • Position represented by latitude and lognitude

    See more

    Declaration

    Swift

    struct Coordinate : Codable
  • A wallet stores the total co2 a user has saved.

    See more

    Declaration

    Swift

    struct Wallet : Codable
  • Endpoints to access the REST API of the backend

    See more

    Declaration

    Swift

    struct Endpoint