Vasilis

comment of old open methods

......@@ -22,14 +22,14 @@
- (UIViewController *) openCoupons:(UIView*) parentView;
//- (UIViewController *) openCoupon:(UIView*) parentView coupon:(NSDictionary*) coupon;
//- (UIViewController *) openCouponBarcode:(UIView*) parentView coupon:(NSDictionary*) coupon;
- (UIViewController *) openGifts:(UIView*) parentView;
- (UIViewController *) openAllGifts:(UIView*) parentView;
- (UIViewController *) openOldCoupons:(UIView*) parentView;
- (UIViewController *) openWallet:(UIView*) parentView;
- (UIViewController *) openMoreForYou:(UIView*) parentView;
- (UIViewController *) openCampaign:(UIView*) parentView campaign:(NSString*) campaign;
- (UIViewController *) openSteps:(UIView*) parentView;
- (UIViewController *) openDetails:(UIView*) parentView;
//- (UIViewController *) openGifts:(UIView*) parentView;
//- (UIViewController *) openAllGifts:(UIView*) parentView;
//- (UIViewController *) openOldCoupons:(UIView*) parentView;
//- (UIViewController *) openWallet:(UIView*) parentView;
//- (UIViewController *) openMoreForYou:(UIView*) parentView;
//- (UIViewController *) openCampaign:(UIView*) parentView campaign:(NSString*) campaign;
//- (UIViewController *) openSteps:(UIView*) parentView;
//- (UIViewController *) openDetails:(UIView*) parentView;
- (NSDictionary *) provideInfoForCampaign;
- (void) applicationDidEnterBackground:(UIApplication *)application;
- (void) applicationWillEnterForeground:(UIApplication *)application;
......
......@@ -111,50 +111,50 @@ CMPedometer *pedometer;
// return couponBarcodeViewController;
//}
- (UIViewController *) openGifts:(UIView*) parentView{
UIViewController *giftsViewController = [GiftsViewInterface giftsViewController:parentView];
return giftsViewController;
}
- (UIViewController *) openAllGifts:(UIView*) parentView{
UIViewController *allGiftsViewController = [AllGiftsViewInterface allGiftsViewController:parentView];
return allGiftsViewController;
}
- (UIViewController *) openOldCoupons:(UIView*) parentView{
UIViewController *oldCouponsViewController = [OldCouponsViewInterface oldCouponsViewController:parentView];
return oldCouponsViewController;
}
- (UIViewController *) openWallet:(UIView*) parentView{
UIViewController *wallletViewController = [WalletViewInterface walletViewController:parentView];
return wallletViewController;
}
- (UIViewController *) openMoreForYou:(UIView*) parentView{
UIViewController *moreForYouViewController = [MoreForYouViewInterface moreForYouViewController:parentView];
return moreForYouViewController;
}
- (UIViewController *) openCampaign:(UIView*) parentView campaign:(NSString*) campaign; {
UIViewController *campaignViewController = [CampaignViewInterface campaignViewController:parentView :campaign];
return campaignViewController;
}
- (UIViewController *) openSteps:(UIView*) parentView {
UIViewController *stepsViewController = [StepsViewInterface stepsViewController:parentView];
return stepsViewController;
}
- (UIViewController *) openDetails:(UIView*) parentView{
UIViewController *detailsViewController = [DetailsViewInterface detailsViewController:parentView];
return detailsViewController;
}
//- (UIViewController *) openGifts:(UIView*) parentView{
//
// UIViewController *giftsViewController = [GiftsViewInterface giftsViewController:parentView];
// return giftsViewController;
//}
//
//- (UIViewController *) openAllGifts:(UIView*) parentView{
//
// UIViewController *allGiftsViewController = [AllGiftsViewInterface allGiftsViewController:parentView];
// return allGiftsViewController;
//}
//
//- (UIViewController *) openOldCoupons:(UIView*) parentView{
//
// UIViewController *oldCouponsViewController = [OldCouponsViewInterface oldCouponsViewController:parentView];
// return oldCouponsViewController;
//}
//
//- (UIViewController *) openWallet:(UIView*) parentView{
//
// UIViewController *wallletViewController = [WalletViewInterface walletViewController:parentView];
// return wallletViewController;
//}
//
//- (UIViewController *) openMoreForYou:(UIView*) parentView{
// UIViewController *moreForYouViewController = [MoreForYouViewInterface moreForYouViewController:parentView];
// return moreForYouViewController;
//}
//
//- (UIViewController *) openCampaign:(UIView*) parentView campaign:(NSString*) campaign; {
// UIViewController *campaignViewController = [CampaignViewInterface campaignViewController:parentView :campaign];
// return campaignViewController;
//}
//
//- (UIViewController *) openSteps:(UIView*) parentView {
// UIViewController *stepsViewController = [StepsViewInterface stepsViewController:parentView];
// return stepsViewController;
//}
//
//- (UIViewController *) openDetails:(UIView*) parentView{
//
// UIViewController *detailsViewController = [DetailsViewInterface detailsViewController:parentView];
// return detailsViewController;
//}
- (NSDictionary *) provideInfoForCampaign {
NSMutableDictionary* info = [[NSMutableDictionary alloc] init];
......
......@@ -364,15 +364,15 @@ public class swiftApi {
return CampaignDataModel().getData
}
public func openCoupon(parent: UIView, coupon: CouponSetItemModel) -> UIViewController {
return UIHostingController(rootView: CouponView(parentView: parent, coupon: coupon))
}
public func openCouponBarcode(parent: UIView, coupon: CouponItemModel) -> UIViewController {
return UIHostingController(rootView: CouponBarcodeView(parentView: parent, coupon: coupon))
}
public func openSteps(parent: UIView) -> UIViewController {
return UIHostingController(rootView: StepsView(parentView: parent))
}
// public func openCoupon(parent: UIView, coupon: CouponSetItemModel) -> UIViewController {
// return UIHostingController(rootView: CouponView(parentView: parent, coupon: coupon))
// }
//
// public func openCouponBarcode(parent: UIView, coupon: CouponItemModel) -> UIViewController {
// return UIHostingController(rootView: CouponBarcodeView(parentView: parent, coupon: coupon))
// }
//
// public func openSteps(parent: UIView) -> UIViewController {
// return UIHostingController(rootView: StepsView(parentView: parent))
// }
}
......