Manos Chorianopoulos

initialSharingDialog, returnDialog optimizations

...@@ -1259,6 +1259,10 @@ public class swiftApi { ...@@ -1259,6 +1259,10 @@ public class swiftApi {
1259 } 1259 }
1260 } 1260 }
1261 1261
1262 + public func getCouponsAsyncInternal(_ getCouponsCallback: @escaping (_ couponsData: Array<CouponItemModel>?) -> Void, failureCallback: @escaping (_ errorCode: Int) -> Void) -> Void {
1263 + swiftApi().getCouponsUniversalAsync(language: "el", getCouponsCallback, failureCallback: failureCallback)
1264 + }
1265 +
1262 public class func getCoupons() -> Array<CouponItemModel> { 1266 public class func getCoupons() -> Array<CouponItemModel> {
1263 return CouponsDataModel().getData 1267 return CouponsDataModel().getData
1264 } 1268 }
...@@ -4377,7 +4381,8 @@ public class swiftApi { ...@@ -4377,7 +4381,8 @@ public class swiftApi {
4377 if (sharingData?.getStatus == 1) { 4381 if (sharingData?.getStatus == 1) {
4378 self.acceptSharingDialog(controller, couponsetType) 4382 self.acceptSharingDialog(controller, couponsetType)
4379 4383
4380 - swiftApi().getCouponsAsync(getCouponsCallback, failureCallback: {errorCode in }) 4384 + // swiftApi().getCouponsAsync(getCouponsCallback, failureCallback: {errorCode in })
4385 + swiftApi().getCouponsAsyncInternal(getCouponsCallback, failureCallback: {errorCode in })
4381 4386
4382 func getCouponsCallback (_ couponsData: Array<swiftApi.CouponItemModel>?) -> Void { 4387 func getCouponsCallback (_ couponsData: Array<swiftApi.CouponItemModel>?) -> Void {
4383 if (couponsData != nil) { 4388 if (couponsData != nil) {
...@@ -4444,7 +4449,8 @@ public class swiftApi { ...@@ -4444,7 +4449,8 @@ public class swiftApi {
4444 4449
4445 if (sharingData?.getStatus == 1) { 4450 if (sharingData?.getStatus == 1) {
4446 4451
4447 - swiftApi().getCouponsAsync(getCouponsCallback, failureCallback: {errorCode in }) 4452 + // swiftApi().getCouponsAsync(getCouponsCallback, failureCallback: {errorCode in })
4453 + swiftApi().getCouponsAsyncInternal(getCouponsCallback, failureCallback: {errorCode in })
4448 4454
4449 func getCouponsCallback (_ couponsData: Array<swiftApi.CouponItemModel>?) -> Void { 4455 func getCouponsCallback (_ couponsData: Array<swiftApi.CouponItemModel>?) -> Void {
4450 if (couponsData != nil) { 4456 if (couponsData != nil) {
......