-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathQueueITEngine.h
98 lines (76 loc) · 3.53 KB
/
QueueITEngine.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#import <UIKit/UIKit.h>
#import "QueuePassedInfo.h"
#import "QueueDisabledInfo.h"
#import "QueueTryPassResult.h"
#import "QueueConsts.h"
#import "QueueITWaitingRoomView.h"
#import "QueueITWaitingRoomProvider.h"
@protocol QueuePassedDelegate;
@protocol QueueViewWillOpenDelegate;
@protocol QueueDisabledDelegate;
@protocol QueueITUnavailableDelegate;
@protocol QueueUserExitedDelegate;
@protocol QueueITErrorDelegate;
@protocol QueueViewClosedDelegate;
@protocol QueueSessionRestartDelegate;
@protocol QueueUrlChangedDelegate;
@protocol QueueViewDidAppearDelegate;
@interface QueueITEngine : NSObject<QueueITWaitingRoomViewDelegate, QueueITWaitingRoomProviderDelegate>
@property (nonatomic, weak)id<QueuePassedDelegate> _Nullable queuePassedDelegate;
@property (nonatomic, weak)id<QueueViewWillOpenDelegate> _Nullable queueViewWillOpenDelegate;
@property (nonatomic, weak)id<QueueDisabledDelegate> _Nullable queueDisabledDelegate;
@property (nonatomic, weak)id<QueueITUnavailableDelegate> _Nullable queueITUnavailableDelegate;
@property (nonatomic, weak)id<QueueITErrorDelegate> _Nullable queueErrorDelegate;
@property (nonatomic, weak)id<QueueViewClosedDelegate> _Nullable queueViewClosedDelegate;
@property (nonatomic, weak)id<QueueUserExitedDelegate> _Nullable queueUserExitedDelegate;
@property (nonatomic, weak)id<QueueSessionRestartDelegate> _Nullable queueSessionRestartDelegate;
@property (nonatomic, weak)id<QueueUrlChangedDelegate> _Nullable queueUrlChangedDelegate;
@property (nonatomic, weak)id<QueueViewDidAppearDelegate> _Nullable queueViewDidAppearDelegate;
@property (nonatomic, strong)NSString* _Nullable errorMessage;
@property (nonatomic, copy)NSString* _Nonnull customerId;
@property (nonatomic, copy)NSString* _Nonnull eventId;
@property (nonatomic, copy)NSString* _Nullable layoutName;
@property (nonatomic, copy)NSString* _Nullable language;
-(instancetype _Nonnull )initWithHost:(UIViewController* _Nonnull)host
customerId:(NSString* _Nonnull)customerId
eventOrAliasId:(NSString* _Nonnull)eventOrAliasId
layoutName:(NSString* _Nullable)layoutName
language:(NSString* _Nullable)language;
-(void)setViewDelay:(int)delayInterval;
-(BOOL)run:(NSError* _Nullable* _Nullable)error;
-(BOOL)runWithEnqueueToken:(NSString* _Nonnull) enqueueToken
error:(NSError* _Nullable*_Nullable) error;
-(BOOL)runWithEnqueueKey:(NSString* _Nonnull) enqueueKey
error:(NSError* _Nullable*_Nullable) error;
-(BOOL)isRequestInProgress;
@end
@protocol QueuePassedDelegate <NSObject>
-(void)notifyYourTurn:(QueuePassedInfo* _Nullable) queuePassedInfo;
@end
@protocol QueueViewWillOpenDelegate <NSObject>
-(void)notifyQueueViewWillOpen;
@end
@protocol QueueDisabledDelegate <NSObject>
-(void)notifyQueueDisabled:(QueueDisabledInfo* _Nullable) queueDisabledInfo;
@end
@protocol QueueITUnavailableDelegate <NSObject>
-(void)notifyQueueITUnavailable:(NSString* _Nonnull) errorMessage;
@end
@protocol QueueITErrorDelegate <NSObject>
-(void)notifyQueueError:(NSString* _Nonnull) errorMessage errorCode:(long)errorCode;
@end
@protocol QueueViewClosedDelegate <NSObject>
-(void)notifyViewClosed;
@end
@protocol QueueUserExitedDelegate <NSObject>
-(void)notifyUserExited;
@end
@protocol QueueSessionRestartDelegate <NSObject>
-(void)notifySessionRestart;
@end
@protocol QueueUrlChangedDelegate<NSObject>
-(void)notifyQueueUrlChanged:(NSString* _Nonnull) url;
@end
@protocol QueueViewDidAppearDelegate <NSObject>
-(void)notifyQueueViewDidAppear;
@end