Manos Chorianopoulos

initialSharingDialog, returnDialog optimizations

......@@ -1259,6 +1259,10 @@ public class swiftApi {
}
}
public func getCouponsAsyncInternal(_ getCouponsCallback: @escaping (_ couponsData: Array<CouponItemModel>?) -> Void, failureCallback: @escaping (_ errorCode: Int) -> Void) -> Void {
swiftApi().getCouponsUniversalAsync(language: "el", getCouponsCallback, failureCallback: failureCallback)
}
public class func getCoupons() -> Array<CouponItemModel> {
return CouponsDataModel().getData
}
......@@ -4377,7 +4381,8 @@ public class swiftApi {
if (sharingData?.getStatus == 1) {
self.acceptSharingDialog(controller, couponsetType)
swiftApi().getCouponsAsync(getCouponsCallback, failureCallback: {errorCode in })
// swiftApi().getCouponsAsync(getCouponsCallback, failureCallback: {errorCode in })
swiftApi().getCouponsAsyncInternal(getCouponsCallback, failureCallback: {errorCode in })
func getCouponsCallback (_ couponsData: Array<swiftApi.CouponItemModel>?) -> Void {
if (couponsData != nil) {
......@@ -4444,7 +4449,8 @@ public class swiftApi {
if (sharingData?.getStatus == 1) {
swiftApi().getCouponsAsync(getCouponsCallback, failureCallback: {errorCode in })
// swiftApi().getCouponsAsync(getCouponsCallback, failureCallback: {errorCode in })
swiftApi().getCouponsAsyncInternal(getCouponsCallback, failureCallback: {errorCode in })
func getCouponsCallback (_ couponsData: Array<swiftApi.CouponItemModel>?) -> Void {
if (couponsData != nil) {
......