EventsRequest
public enum EventsRequest : URLRequestConvertible
Enumeration of network requests for events
-
Get events with optional
Parameters
.Declaration
Swift
case getEvents(parameters: Parameters?)
-
Get event with ID with optional
Parameters
.Declaration
Swift
case getEventById(id: Int, parameters: Parameters?)
-
Get event with name and optional
Parameters
.Declaration
Swift
case getEventByName(name: String, parameters: Parameters?)
-
Favorite an event with ID.
Declaration
Swift
case favoriteEvent(id: Int)
-
Unfavorite an event with ID.
Declaration
Swift
case unfavoriteEvent(id: Int)
-
Response to event with ID and location.
Declaration
Swift
case respondToEvent(id: Int, latitude: Double, longitude: Double)
-
Cancel an event with eventResponseID and optional
Parameters
.Declaration
Swift
case cancelEvent(eventResponseId: String, parameters: Parameters?)
-
Get events dates with optional
Parameters
.Declaration
Swift
case getEventsDates(parameters: Parameters?)
-
Get event responses with optional
Parameters
.Declaration
Swift
case getEventsResponses(parameters: Parameters?)
-
Get event response with id and optional
Parameters
.Declaration
Swift
case getEventResponse(id: String, parameters: Parameters?)
-
Get event categories with optional
Parameters
.Declaration
Swift
case getCategories(parameters: Parameters?)
-
Declaration
Swift
public var path: String { get }
-
Declaration
Swift
public var method: HTTPMethod { get }
-
Declaration
Swift
public var parameters: Parameters? { get }
-
Declaration
Swift
public var headers: HTTPHeaders? { get }