ChallengesRequest
public enum ChallengesRequest : URLRequestConvertible
Enumeration of network requests for Challenges.
-
Get challenges with optional
Parameters
.Declaration
Swift
case getChallenges(parameters: Parameters?)
-
Get favorited challenges with optional
Parameters
.Declaration
Swift
case getFavedChallenges(parameters: Parameters?)
-
Get alert challenges with optional
Parameters
.Declaration
Swift
case getAlertChallenges(parameters: Parameters?)
-
Get challenge information by id.
Declaration
Swift
case getChallenge(id: Int, parameters: Parameters?)
-
Get challenge information by internal name.
Declaration
Swift
case getChallengeWithName(name: String, parameters: Parameters?)
-
Get challenge responses with optional
Parameters
.Declaration
Swift
case getChallengeResponses(parameters: Parameters?)
-
Get challenge response information by id.
Declaration
Swift
case getChallengeResponse(id: Int, parameters: Parameters?)
-
Mark a challenge as favorite.
Declaration
Swift
case favoriteChallenge(id: Int)
-
Unmark a challenge as favorite.
Declaration
Swift
case unfavoriteChallenge(id: Int)
-
Respond to a challenge with optional
Parameters
.Declaration
Swift
case respondToChallenge(id: Int, parameters: Parameters?)
-
Respond to a challenge with an image and optional
Parameters
.Declaration
Swift
case respondToChallengeWithImage(id: Int, image: UIImage, parameters: Parameters?)
-
Respond to a challenge with a video and optional
Parameters
.Declaration
Swift
case respondToChallengeWithVideo(id: Int, videoUrl: URL, parameters: Parameters?)
-
Re-enter a Response to a challenge with optional
Parameters
.Declaration
Swift
case reEnterResponseToChallenge(id: Int, responseId: Int, 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 multipartAttachments: URLRequest.MultipartAttachments? { get }