Showing
1 changed file
with
17 additions
and
0 deletions
... | @@ -129,6 +129,7 @@ import UIKit | ... | @@ -129,6 +129,7 @@ import UIKit |
129 | DispatchQueue.main.async { | 129 | DispatchQueue.main.async { |
130 | if (response?.getStatus == 1) { | 130 | if (response?.getStatus == 1) { |
131 | self.showDialog("Το αίτημά σου ολοκληρώθηκε επιτυχώς!","Θα ενημερωθείς άμεσα για την ενεργοποίηση του πακέτου σου.") | 131 | self.showDialog("Το αίτημά σου ολοκληρώθηκε επιτυχώς!","Θα ενημερωθείς άμεσα για την ενεργοποίηση του πακέτου σου.") |
132 | + self.postEventRequest() | ||
132 | 133 | ||
133 | } else { | 134 | } else { |
134 | self.showDialog("Αποτυχία","Κάτι πήγε στραβά") | 135 | self.showDialog("Αποτυχία","Κάτι πήγε στραβά") |
... | @@ -139,6 +140,22 @@ import UIKit | ... | @@ -139,6 +140,22 @@ import UIKit |
139 | } | 140 | } |
140 | } | 141 | } |
141 | 142 | ||
143 | + func postEventRequest() { | ||
144 | + swiftApi().postEventAsync(Session_ID: (campaign?.session_uuid ?? ""), OfferAudienceLevel: (ccms?._offerAudienceLevel ?? ""), msisdn: self.selectedNumber, UACIOfferTrackingCode: (ccms?._uaciOfferTrackingCode ?? ""), OFFERCODE1: (ccms?._offerCode1 ?? ""), SCORE: (ccms?._score ?? ""), ZONE: (ccms?._zone ?? ""), WAVE: (ccms?._wave ?? ""), VALIDITY: (ccms?._validity ?? ""), TREATMENT_CODE: (ccms?._treatmentCode ?? ""), postEventCallback) | ||
145 | + } | ||
146 | + | ||
147 | + func postEventCallback (_ response: swiftApi.GenericResponseModel?) -> Void { | ||
148 | + if (response != nil) { | ||
149 | + DispatchQueue.main.async { | ||
150 | + if (response?.getStatus == 1) { | ||
151 | + | ||
152 | + } else { | ||
153 | + } | ||
154 | + } | ||
155 | + } else { | ||
156 | + } | ||
157 | + } | ||
158 | + | ||
142 | // MARK: - Actions | 159 | // MARK: - Actions |
143 | @IBAction func activateButtomAction(_ sender: Any) { | 160 | @IBAction func activateButtomAction(_ sender: Any) { |
144 | self.numbersPopupTapped(sender) | 161 | self.numbersPopupTapped(sender) | ... | ... |
-
Please register or login to post a comment