FeedbacksAPI
public enum FeedbacksAPI
Caseless enumeration with static methods to send Feedback Requests
-
Sends a request to submit a feedback by parameters.
Declaration
Swift
public static func submitFeedback(with parameters: Parameters? = nil, completion: ResponseCompletion<Bool> = nil)
Parameters
parameters
The
Parameters
to apply.completion
The closure to be executed once the request has finished.
-
Sends a request to submit a feedback by parameters.
Declaration
Swift
public static func sendFeedback(subject: String, body: String, completion: ResponseCompletion<Bool> = nil)
Parameters
subject
The subject of the feedback.
body
The body of the feedback.
parameters
The
Parameters
to apply.completion
The closure to be executed once the request has finished.
-
Sends a request to get a feedback categories.
Declaration
Swift
public static func getFeedbackCategories(completion: ResponseCompletion<[String : FeedbackCategory]> = nil)
Parameters
completion
The closure to be executed once the request has finished.
-
Sends a request to get the content of the feedback.
Declaration
Swift
public static func getFeedbackContent(completion: ResponseCompletion<StaticFile> = nil)
Parameters
completion
The closure to be executed once the request has finished.