Manos Chorianopoulos

remove controller parameter from getPacingDetails

......@@ -4210,7 +4210,7 @@ public class swiftApi {
}
public func getPacingDetailsAsync(_ controller: UIViewController, _ getPacingDetailsCallback: @escaping (_ pacingData: PacingDetails?) -> Void) -> Void {
public func getPacingDetailsAsync(_ getPacingDetailsCallback: @escaping (_ pacingData: PacingDetails?) -> Void) -> Void {
let instanceOfMyApi = MyApi()
instanceOfMyApi.getPacingDetailsAsync(pacingCallback, failureBlock: pacingFailureCallback)
......@@ -4225,9 +4225,9 @@ public class swiftApi {
let tempPacingDetails = PacingDetails(dictionary: pacingDataResult)
// if (tempPacingDetails._meters._month._value >= tempPacingDetails._meters._month._goal) {
if (tempPacingDetails._goal_reached == true) {
self.pacingGoalDialog(controller, tempPacingDetails._msg)
}
// if (tempPacingDetails._goal_reached == true) {
// self.pacingGoalDialog(controller, tempPacingDetails._msg)
// }
getPacingDetailsCallback(tempPacingDetails);
}
......