Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Vasilis
2022-05-05 11:01:05 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
73e196ccc33532f3ecfe3e184808b0a31007ccce
73e196cc
1 parent
243516d7
comment of old open methods
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
63 deletions
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/billskouras.xcuserdatad/UserInterfaceState.xcuserstate
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/MyApi.h
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/MyApi.m
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/swiftApi.swift
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/billskouras.xcuserdatad/UserInterfaceState.xcuserstate
View file @
73e196c
No preview for this file type
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/MyApi.h
View file @
73e196c
...
...
@@ -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
;
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/MyApi.m
View file @
73e196c
...
...
@@ -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
];
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/swiftApi.swift
View file @
73e196c
...
...
@@ -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))
//
}
}
...
...
Please
register
or
login
to post a comment