Skip to content

Commit c658e1d

Browse files
committed
Corrected delegate name
1 parent 3747d70 commit c658e1d

File tree

12 files changed

+261
-1
lines changed

12 files changed

+261
-1
lines changed

Podfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
source ‘https://github.com/queueit/ios-webui-sdk’
22

3+

QueueITLib/QueueITWaitingRoomProvider.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ typedef enum {
1515

1616
@property (nonatomic, weak)id<ProviderQueueDisabledDelegate> _Nullable providerQueueDisabledDelegate;
1717
@property (nonatomic, weak)id<ProviderQueueITUnavailableDelegate> _Nullable providerQueueITUnavailableDelegate;
18-
@property (nonatomic, weak)id<ProviderSuccessDelegate> _Nullable successViewDelegate;
18+
@property (nonatomic, weak)id<ProviderSuccessDelegate> _Nullable providerSuccessDelegate;
1919

2020
-(instancetype _Nonnull)init:(NSString* _Nonnull)customerId
2121
eventOrAliasId:(NSString* _Nonnull)eventOrAliasId

dist/QueueITLib.xcframework.zip

724 KB
Binary file not shown.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>AvailableLibraries</key>
6+
<array>
7+
<dict>
8+
<key>HeadersPath</key>
9+
<string>Headers</string>
10+
<key>LibraryIdentifier</key>
11+
<string>ios-arm64_x86_64-simulator</string>
12+
<key>LibraryPath</key>
13+
<string>libQueueITLib.a</string>
14+
<key>SupportedArchitectures</key>
15+
<array>
16+
<string>arm64</string>
17+
<string>x86_64</string>
18+
</array>
19+
<key>SupportedPlatform</key>
20+
<string>ios</string>
21+
<key>SupportedPlatformVariant</key>
22+
<string>simulator</string>
23+
</dict>
24+
<dict>
25+
<key>HeadersPath</key>
26+
<string>Headers</string>
27+
<key>LibraryIdentifier</key>
28+
<string>ios-arm64_armv7</string>
29+
<key>LibraryPath</key>
30+
<string>libQueueITLib.a</string>
31+
<key>SupportedArchitectures</key>
32+
<array>
33+
<string>arm64</string>
34+
<string>armv7</string>
35+
</array>
36+
<key>SupportedPlatform</key>
37+
<string>ios</string>
38+
</dict>
39+
</array>
40+
<key>CFBundlePackageType</key>
41+
<string>XFWK</string>
42+
<key>XCFrameworkFormatVersion</key>
43+
<string>1.0</string>
44+
</dict>
45+
</plist>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#ifndef QueueConsts_h
2+
#define QueueConsts_h
3+
4+
#define QueueCloseUrl @"queueit://close"
5+
#define QueueRestartSessionUrl @"queueit://restartSession"
6+
#define SDKVersion @"iOS-3.1.14";
7+
8+
#endif
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
#import <UIKit/UIKit.h>
2+
#import "QueuePassedInfo.h"
3+
#import "QueueDisabledInfo.h"
4+
#import "QueueTryPassResult.h"
5+
#import "QueueConsts.h"
6+
#import "QueueITWaitingRoomView.h"
7+
#import "QueueITWaitingRoomProvider.h"
8+
9+
@protocol QueuePassedDelegate;
10+
@protocol QueueViewWillOpenDelegate;
11+
@protocol QueueViewDidAppearDelegate;
12+
@protocol QueueDisabledDelegate;
13+
@protocol QueueITUnavailableDelegate;
14+
@protocol QueueUserExitedDelegate;
15+
@protocol QueueViewClosedDelegate;
16+
@protocol QueueSessionRestartDelegate;
17+
@protocol QueueSuccessDelegate;
18+
19+
@interface QueueITEngine : NSObject<ViewUserExitedDelegate, ViewUserClosedDelegate, ViewSessionRestartDelegate, ViewQueuePassedDelegate, ViewQueueDidAppearDelegate, ViewQueueWillOpenDelegate, ViewQueueUpdatePageUrlDelegate, ProviderQueueDisabledDelegate, ProviderQueueITUnavailableDelegate, ProviderSuccessDelegate>
20+
21+
@property (nonatomic, weak)id<QueuePassedDelegate> _Nullable queuePassedDelegate;
22+
@property (nonatomic, weak)id<QueueViewWillOpenDelegate> _Nullable queueViewWillOpenDelegate;
23+
@property (nonatomic, weak)id<QueueViewDidAppearDelegate> _Nullable queueViewDidAppearDelegate;
24+
@property (nonatomic, weak)id<QueueDisabledDelegate> _Nullable queueDisabledDelegate;
25+
@property (nonatomic, weak)id<QueueITUnavailableDelegate> _Nullable queueITUnavailableDelegate;
26+
@property (nonatomic, weak)id<QueueUserExitedDelegate> _Nullable queueUserExitedDelegate;
27+
@property (nonatomic, weak)id<QueueViewClosedDelegate> _Nullable queueViewClosedDelegate;
28+
@property (nonatomic, weak)id<QueueSessionRestartDelegate> _Nullable queueSessionRestartDelegate;
29+
@property (nonatomic, weak)id<QueueSuccessDelegate> _Nullable queueSuccessDelegate;
30+
31+
@property (nonatomic, strong)NSString* _Nullable errorMessage;
32+
@property (nonatomic, copy)NSString* _Nonnull customerId;
33+
@property (nonatomic, copy)NSString* _Nonnull eventId;
34+
@property (nonatomic, copy)NSString* _Nullable layoutName;
35+
@property (nonatomic, copy)NSString* _Nullable language;
36+
37+
-(instancetype _Nonnull )initWithHost:(UIViewController* _Nonnull)host
38+
customerId:(NSString* _Nonnull)customerId
39+
eventOrAliasId:(NSString* _Nonnull)eventOrAliasId
40+
layoutName:(NSString* _Nullable)layoutName
41+
language:(NSString* _Nullable)language;
42+
43+
-(void)setViewDelay:(int)delayInterval;
44+
45+
-(BOOL)run:(NSError* _Nullable* _Nullable)error;
46+
-(BOOL)runWithEnqueueToken:(NSString* _Nonnull) enqueueToken
47+
error:(NSError* _Nullable*_Nullable) error;
48+
-(BOOL)runWithEnqueueKey:(NSString* _Nonnull) enqueueKey
49+
error:(NSError* _Nullable*_Nullable) error;
50+
-(BOOL)isUserInQueue;
51+
-(BOOL)isRequestInProgress;
52+
53+
@end
54+
55+
@protocol QueuePassedDelegate <NSObject>
56+
-(void)notifyYourTurn:(QueuePassedInfo* _Nullable) queuePassedInfo;
57+
@end
58+
59+
@protocol QueueSessionRestartDelegate <NSObject>
60+
-(void)notifySessionRestart;
61+
@end
62+
63+
64+
@protocol QueueViewWillOpenDelegate <NSObject>
65+
-(void)notifyQueueViewWillOpen;
66+
@end
67+
68+
@protocol QueueViewDidAppearDelegate <NSObject>
69+
-(void)notifyQueueViewDidAppear;
70+
@end
71+
72+
@protocol QueueUserExitedDelegate <NSObject>
73+
-(void)notifyUserExited;
74+
@end
75+
76+
@protocol QueueViewClosedDelegate <NSObject>
77+
-(void)notifyViewClosed;
78+
@end
79+
80+
@protocol QueueDisabledDelegate <NSObject>
81+
-(void)notifyQueueDisabled:(QueueDisabledInfo* _Nullable) queueDisabledInfo;
82+
@end
83+
84+
@protocol QueueITUnavailableDelegate <NSObject>
85+
-(void)notifyQueueITUnavailable:(NSString* _Nonnull) errorMessage;
86+
@end
87+
88+
@protocol QueueSuccessDelegate <NSObject>
89+
-(void)notifyQueueSuccess:(QueueTryPassResult* _Nullable) queuePassResult;
90+
@end
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#import <Foundation/Foundation.h>
2+
3+
@interface QueuePassedInfo : NSObject
4+
5+
@property (nonatomic, strong) NSString* _Nullable queueitToken;
6+
7+
-(instancetype _Nonnull )initWithQueueitToken:(NSString* _Nullable) queueitToken;
8+
9+
@end
1.16 MB
Binary file not shown.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#ifndef QueueConsts_h
2+
#define QueueConsts_h
3+
4+
#define QueueCloseUrl @"queueit://close"
5+
#define QueueRestartSessionUrl @"queueit://restartSession"
6+
#define SDKVersion @"iOS-3.1.14";
7+
8+
#endif
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
#import <UIKit/UIKit.h>
2+
#import "QueuePassedInfo.h"
3+
#import "QueueDisabledInfo.h"
4+
#import "QueueTryPassResult.h"
5+
#import "QueueConsts.h"
6+
#import "QueueITWaitingRoomView.h"
7+
#import "QueueITWaitingRoomProvider.h"
8+
9+
@protocol QueuePassedDelegate;
10+
@protocol QueueViewWillOpenDelegate;
11+
@protocol QueueViewDidAppearDelegate;
12+
@protocol QueueDisabledDelegate;
13+
@protocol QueueITUnavailableDelegate;
14+
@protocol QueueUserExitedDelegate;
15+
@protocol QueueViewClosedDelegate;
16+
@protocol QueueSessionRestartDelegate;
17+
@protocol QueueSuccessDelegate;
18+
19+
@interface QueueITEngine : NSObject<ViewUserExitedDelegate, ViewUserClosedDelegate, ViewSessionRestartDelegate, ViewQueuePassedDelegate, ViewQueueDidAppearDelegate, ViewQueueWillOpenDelegate, ViewQueueUpdatePageUrlDelegate, ProviderQueueDisabledDelegate, ProviderQueueITUnavailableDelegate, ProviderSuccessDelegate>
20+
21+
@property (nonatomic, weak)id<QueuePassedDelegate> _Nullable queuePassedDelegate;
22+
@property (nonatomic, weak)id<QueueViewWillOpenDelegate> _Nullable queueViewWillOpenDelegate;
23+
@property (nonatomic, weak)id<QueueViewDidAppearDelegate> _Nullable queueViewDidAppearDelegate;
24+
@property (nonatomic, weak)id<QueueDisabledDelegate> _Nullable queueDisabledDelegate;
25+
@property (nonatomic, weak)id<QueueITUnavailableDelegate> _Nullable queueITUnavailableDelegate;
26+
@property (nonatomic, weak)id<QueueUserExitedDelegate> _Nullable queueUserExitedDelegate;
27+
@property (nonatomic, weak)id<QueueViewClosedDelegate> _Nullable queueViewClosedDelegate;
28+
@property (nonatomic, weak)id<QueueSessionRestartDelegate> _Nullable queueSessionRestartDelegate;
29+
@property (nonatomic, weak)id<QueueSuccessDelegate> _Nullable queueSuccessDelegate;
30+
31+
@property (nonatomic, strong)NSString* _Nullable errorMessage;
32+
@property (nonatomic, copy)NSString* _Nonnull customerId;
33+
@property (nonatomic, copy)NSString* _Nonnull eventId;
34+
@property (nonatomic, copy)NSString* _Nullable layoutName;
35+
@property (nonatomic, copy)NSString* _Nullable language;
36+
37+
-(instancetype _Nonnull )initWithHost:(UIViewController* _Nonnull)host
38+
customerId:(NSString* _Nonnull)customerId
39+
eventOrAliasId:(NSString* _Nonnull)eventOrAliasId
40+
layoutName:(NSString* _Nullable)layoutName
41+
language:(NSString* _Nullable)language;
42+
43+
-(void)setViewDelay:(int)delayInterval;
44+
45+
-(BOOL)run:(NSError* _Nullable* _Nullable)error;
46+
-(BOOL)runWithEnqueueToken:(NSString* _Nonnull) enqueueToken
47+
error:(NSError* _Nullable*_Nullable) error;
48+
-(BOOL)runWithEnqueueKey:(NSString* _Nonnull) enqueueKey
49+
error:(NSError* _Nullable*_Nullable) error;
50+
-(BOOL)isUserInQueue;
51+
-(BOOL)isRequestInProgress;
52+
53+
@end
54+
55+
@protocol QueuePassedDelegate <NSObject>
56+
-(void)notifyYourTurn:(QueuePassedInfo* _Nullable) queuePassedInfo;
57+
@end
58+
59+
@protocol QueueSessionRestartDelegate <NSObject>
60+
-(void)notifySessionRestart;
61+
@end
62+
63+
64+
@protocol QueueViewWillOpenDelegate <NSObject>
65+
-(void)notifyQueueViewWillOpen;
66+
@end
67+
68+
@protocol QueueViewDidAppearDelegate <NSObject>
69+
-(void)notifyQueueViewDidAppear;
70+
@end
71+
72+
@protocol QueueUserExitedDelegate <NSObject>
73+
-(void)notifyUserExited;
74+
@end
75+
76+
@protocol QueueViewClosedDelegate <NSObject>
77+
-(void)notifyViewClosed;
78+
@end
79+
80+
@protocol QueueDisabledDelegate <NSObject>
81+
-(void)notifyQueueDisabled:(QueueDisabledInfo* _Nullable) queueDisabledInfo;
82+
@end
83+
84+
@protocol QueueITUnavailableDelegate <NSObject>
85+
-(void)notifyQueueITUnavailable:(NSString* _Nonnull) errorMessage;
86+
@end
87+
88+
@protocol QueueSuccessDelegate <NSObject>
89+
-(void)notifyQueueSuccess:(QueueTryPassResult* _Nullable) queuePassResult;
90+
@end

0 commit comments

Comments
 (0)