-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
KatalysatorSDK.framework/Versions/A/Headers/KATCouponManager.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// | ||
// KATCouponManager.h | ||
// KatalysatorSample | ||
// | ||
// Created by Sven Roeder on 26/06/14. | ||
// Copyright (c) 2014 Katalysator AB. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "KATBeaconConfiguration.h" | ||
|
||
|
||
/** | ||
* KATCouponHandler defines the callback for generating a coupon. | ||
* | ||
* @since v1.1.4 | ||
*/ | ||
typedef void(^KATCouponHandler)(NSDictionary *coupon); | ||
|
||
|
||
@interface KATCouponManager : NSObject | ||
|
||
|
||
/** | ||
* Allows to generate a coupon. | ||
* This also depends on the beacon configuration on the backend. | ||
* | ||
* @param key coupon storekey | ||
* @param config the api configuration | ||
* @param completion the callback for generating a coupon | ||
* | ||
* @return void | ||
* @since v1.1.4 | ||
*/ | ||
+ (void)couponForId:(NSString *)key configuration:(KATBeaconConfiguration *)config completion:(KATCouponHandler)completion; | ||
|
||
|
||
@end |
28 changes: 28 additions & 0 deletions
28
KatalysatorSDK.framework/Versions/A/Headers/KATSurveyManager.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// KATSurveyManager.h | ||
// KatalysatorSample | ||
// | ||
// Created by Sven Roeder on 26/06/14. | ||
// Copyright (c) 2014 Katalysator AB. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "KATBeaconConfiguration.h" | ||
|
||
@interface KATSurveyManager : NSObject | ||
|
||
|
||
/** | ||
* Track answers to a survey. Simply post the array with the questions and | ||
* filled answer key | ||
* | ||
* @param answers | ||
* @param config the api configuration | ||
* | ||
* @return void | ||
* @since v1.1.4 | ||
*/ | ||
+ (void)submitSurvey:(NSArray *)answers configuration:(KATBeaconConfiguration *)configuration; | ||
|
||
|
||
@end |