11
11
@protocol QueueSessionRestartDelegate;
12
12
13
13
@interface QueueITEngine : NSObject
14
- @property (nonatomic )id <QueuePassedDelegate> queuePassedDelegate;
15
- @property (nonatomic )id <QueueViewWillOpenDelegate> queueViewWillOpenDelegate;
16
- @property (nonatomic )id <QueueDisabledDelegate> queueDisabledDelegate;
17
- @property (nonatomic )id <QueueITUnavailableDelegate> queueITUnavailableDelegate;
18
- @property (nonatomic )id <QueueUserExitedDelegate> queueUserExitedDelegate;
19
- @property (nonatomic )id <QueueViewClosedDelegate> queueViewClosedDelegate;
20
- @property (nonatomic )id <QueueSessionRestartDelegate> queueSessionRestartDelegate;
21
- @property (nonatomic , strong )NSString * errorMessage;
14
+ @property (nonatomic )id <QueuePassedDelegate> _Nonnull queuePassedDelegate;
15
+ @property (nonatomic )id <QueueViewWillOpenDelegate> _Nullable queueViewWillOpenDelegate;
16
+ @property (nonatomic )id <QueueDisabledDelegate> _Nonnull queueDisabledDelegate;
17
+ @property (nonatomic )id <QueueITUnavailableDelegate> _Nullable queueITUnavailableDelegate;
18
+ @property (nonatomic )id <QueueUserExitedDelegate> _Nullable queueUserExitedDelegate;
19
+ @property (nonatomic )id <QueueViewClosedDelegate> _Nullable queueViewClosedDelegate;
20
+ @property (nonatomic )id <QueueSessionRestartDelegate> _Nullable queueSessionRestartDelegate;
21
+ @property (nonatomic , strong )NSString * _Nullable errorMessage;
22
22
23
23
typedef enum {
24
24
NetworkUnavailable = -100 ,
25
25
RequestAlreadyInProgress = 10
26
26
} QueueITRuntimeError;
27
27
#define QueueITRuntimeErrorArray @" Network connection is unavailable" , @" Enqueue request is already in progress" , nil
28
28
29
- -(instancetype )initWithHost : (UIViewController * )host
30
- customerId : (NSString *)customerId
31
- eventOrAliasId : (NSString *)eventOrAliasId
32
- layoutName : (NSString *)layoutName
33
- language : (NSString *)language ;
29
+ -(instancetype _Nonnull )initWithHost : (UIViewController* _Nonnull )host
30
+ customerId : (NSString * _Nonnull )customerId
31
+ eventOrAliasId : (NSString * _Nonnull )eventOrAliasId
32
+ layoutName : (NSString * _Nullable )layoutName
33
+ language : (NSString * _Nullable )language ;
34
34
35
35
-(void )setViewDelay : (int )delayInterval ;
36
- -(BOOL )run : (NSError ** )error ;
37
- -(BOOL )runWithEnqueueToken : (NSString *) enqueueToken
38
- error : (NSError ** ) error ;
39
- -(BOOL )runWithEnqueueKey : (NSString *) enqueueKey
40
- error : (NSError ** ) error ;
36
+ -(BOOL )run : (NSError * _Nullable* _Nullable )error ;
37
+ -(BOOL )runWithEnqueueToken : (NSString * _Nonnull ) enqueueToken
38
+ error : (NSError * _Nullable*_Nullable ) error ;
39
+ -(BOOL )runWithEnqueueKey : (NSString * _Nonnull ) enqueueKey
40
+ error : (NSError * _Nullable*_Nullable ) error ;
41
41
-(BOOL )isUserInQueue ;
42
42
-(BOOL )isRequestInProgress ;
43
- -(NSString *) errorTypeEnumToString : (QueueITRuntimeError)errorEnumVal ;
44
- -(void )updateQueuePageUrl : (NSString *)queuePageUrl ;
43
+ -(NSString * _Nullable ) errorTypeEnumToString : (QueueITRuntimeError)errorEnumVal ;
44
+ -(void )updateQueuePageUrl : (NSString * _Nonnull )queuePageUrl ;
45
45
-(void )raiseUserExited ;
46
46
-(void )raiseViewClosed ;
47
47
-(void )raiseSessionRestart ;
48
- -(void )raiseQueuePassed : (NSString *) queueitToken ;
48
+ -(void )raiseQueuePassed : (NSString * _Nullable ) queueitToken ;
49
49
-(void )close : (void (^ __nullable)(void ))onComplete ;
50
50
-(void )handleAppEnqueueResponse : (NSString * _Nullable) queueId
51
51
queueURL : (NSString * _Nullable) queueURL
@@ -72,7 +72,7 @@ typedef enum {
72
72
@end
73
73
74
74
@protocol QueueITUnavailableDelegate <NSObject >
75
- -(void )notifyQueueITUnavailable : (NSString * ) errorMessage ;
75
+ -(void )notifyQueueITUnavailable : (NSString * _Nonnull ) errorMessage ;
76
76
@end
77
77
78
78
@protocol QueueUserExitedDelegate <NSObject >
0 commit comments