Showing
2 changed files
with
6 additions
and
5 deletions
No preview for this file type
... | @@ -3987,7 +3987,7 @@ public class swiftApi { | ... | @@ -3987,7 +3987,7 @@ public class swiftApi { |
3987 | } | 3987 | } |
3988 | } | 3988 | } |
3989 | 3989 | ||
3990 | - public var _msg: Bool { | 3990 | + public var _msg: String { |
3991 | get { // getter | 3991 | get { // getter |
3992 | return self.msg | 3992 | return self.msg |
3993 | } | 3993 | } |
... | @@ -4181,8 +4181,9 @@ public class swiftApi { | ... | @@ -4181,8 +4181,9 @@ public class swiftApi { |
4181 | 4181 | ||
4182 | let tempPacingDetails = PacingDetails(dictionary: pacingDataResult) | 4182 | let tempPacingDetails = PacingDetails(dictionary: pacingDataResult) |
4183 | 4183 | ||
4184 | - if (tempPacingDetails._meters._month._value >= tempPacingDetails._meters._month._goal) { | 4184 | + // if (tempPacingDetails._meters._month._value >= tempPacingDetails._meters._month._goal) { |
4185 | - self.pacingGoalDialog(controller) | 4185 | + if (tempPacingDetails._goal_reached == true) { |
4186 | + self.pacingGoalDialog(controller, tempPacingDetails._msg) | ||
4186 | } | 4187 | } |
4187 | 4188 | ||
4188 | getPacingDetailsCallback(tempPacingDetails); | 4189 | getPacingDetailsCallback(tempPacingDetails); |
... | @@ -4201,9 +4202,9 @@ public class swiftApi { | ... | @@ -4201,9 +4202,9 @@ public class swiftApi { |
4201 | } | 4202 | } |
4202 | 4203 | ||
4203 | 4204 | ||
4204 | - func pacingGoalDialog(_ controller: UIViewController) -> Void { | 4205 | + func pacingGoalDialog(_ controller: UIViewController, _ alertTitle: String) -> Void { |
4205 | 4206 | ||
4206 | - let alert = UIAlertController(title: "Συγχαρητήρια!", message: "Πέτυχες το στόχο του μήνα! Διάλεξε το δώρο που επιθυμείς να ενεργοποιήσεις!", preferredStyle: .alert) | 4207 | + let alert = UIAlertController(title: "Συγχαρητήρια!", message: alertTitle, preferredStyle: .alert) |
4207 | alert.addAction(UIAlertAction(title: "OK", style: .default, handler: { action in | 4208 | alert.addAction(UIAlertAction(title: "OK", style: .default, handler: { action in |
4208 | switch action.style{ | 4209 | switch action.style{ |
4209 | case .default: | 4210 | case .default: | ... | ... |
-
Please register or login to post a comment