Skip to content

Commit

Permalink
Corrected delegate name
Browse files Browse the repository at this point in the history
  • Loading branch information
queueitdevs committed Jun 16, 2022
1 parent 3747d70 commit c658e1d
Show file tree
Hide file tree
Showing 12 changed files with 261 additions and 1 deletion.
1 change: 1 addition & 0 deletions Podfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
source ‘https://github.com/queueit/ios-webui-sdk’


2 changes: 1 addition & 1 deletion QueueITLib/QueueITWaitingRoomProvider.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ typedef enum {

@property (nonatomic, weak)id<ProviderQueueDisabledDelegate> _Nullable providerQueueDisabledDelegate;
@property (nonatomic, weak)id<ProviderQueueITUnavailableDelegate> _Nullable providerQueueITUnavailableDelegate;
@property (nonatomic, weak)id<ProviderSuccessDelegate> _Nullable successViewDelegate;
@property (nonatomic, weak)id<ProviderSuccessDelegate> _Nullable providerSuccessDelegate;

-(instancetype _Nonnull)init:(NSString* _Nonnull)customerId
eventOrAliasId:(NSString* _Nonnull)eventOrAliasId
Expand Down
Binary file added dist/QueueITLib.xcframework.zip
Binary file not shown.
45 changes: 45 additions & 0 deletions dist/QueueITLib.xcframework/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AvailableLibraries</key>
<array>
<dict>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>libQueueITLib.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<key>LibraryPath</key>
<string>libQueueITLib.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
</array>
<key>CFBundlePackageType</key>
<string>XFWK</string>
<key>XCFrameworkFormatVersion</key>
<string>1.0</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#ifndef QueueConsts_h
#define QueueConsts_h

#define QueueCloseUrl @"queueit://close"
#define QueueRestartSessionUrl @"queueit://restartSession"
#define SDKVersion @"iOS-3.1.14";

#endif
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
#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 QueueViewDidAppearDelegate;
@protocol QueueDisabledDelegate;
@protocol QueueITUnavailableDelegate;
@protocol QueueUserExitedDelegate;
@protocol QueueViewClosedDelegate;
@protocol QueueSessionRestartDelegate;
@protocol QueueSuccessDelegate;

@interface QueueITEngine : NSObject<ViewUserExitedDelegate, ViewUserClosedDelegate, ViewSessionRestartDelegate, ViewQueuePassedDelegate, ViewQueueDidAppearDelegate, ViewQueueWillOpenDelegate, ViewQueueUpdatePageUrlDelegate, ProviderQueueDisabledDelegate, ProviderQueueITUnavailableDelegate, ProviderSuccessDelegate>

@property (nonatomic, weak)id<QueuePassedDelegate> _Nullable queuePassedDelegate;
@property (nonatomic, weak)id<QueueViewWillOpenDelegate> _Nullable queueViewWillOpenDelegate;
@property (nonatomic, weak)id<QueueViewDidAppearDelegate> _Nullable queueViewDidAppearDelegate;
@property (nonatomic, weak)id<QueueDisabledDelegate> _Nullable queueDisabledDelegate;
@property (nonatomic, weak)id<QueueITUnavailableDelegate> _Nullable queueITUnavailableDelegate;
@property (nonatomic, weak)id<QueueUserExitedDelegate> _Nullable queueUserExitedDelegate;
@property (nonatomic, weak)id<QueueViewClosedDelegate> _Nullable queueViewClosedDelegate;
@property (nonatomic, weak)id<QueueSessionRestartDelegate> _Nullable queueSessionRestartDelegate;
@property (nonatomic, weak)id<QueueSuccessDelegate> _Nullable queueSuccessDelegate;

@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)isUserInQueue;
-(BOOL)isRequestInProgress;

@end

@protocol QueuePassedDelegate <NSObject>
-(void)notifyYourTurn:(QueuePassedInfo* _Nullable) queuePassedInfo;
@end

@protocol QueueSessionRestartDelegate <NSObject>
-(void)notifySessionRestart;
@end


@protocol QueueViewWillOpenDelegate <NSObject>
-(void)notifyQueueViewWillOpen;
@end

@protocol QueueViewDidAppearDelegate <NSObject>
-(void)notifyQueueViewDidAppear;
@end

@protocol QueueUserExitedDelegate <NSObject>
-(void)notifyUserExited;
@end

@protocol QueueViewClosedDelegate <NSObject>
-(void)notifyViewClosed;
@end

@protocol QueueDisabledDelegate <NSObject>
-(void)notifyQueueDisabled:(QueueDisabledInfo* _Nullable) queueDisabledInfo;
@end

@protocol QueueITUnavailableDelegate <NSObject>
-(void)notifyQueueITUnavailable:(NSString* _Nonnull) errorMessage;
@end

@protocol QueueSuccessDelegate <NSObject>
-(void)notifyQueueSuccess:(QueueTryPassResult* _Nullable) queuePassResult;
@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#import <Foundation/Foundation.h>

@interface QueuePassedInfo : NSObject

@property (nonatomic, strong) NSString* _Nullable queueitToken;

-(instancetype _Nonnull )initWithQueueitToken:(NSString* _Nullable) queueitToken;

@end
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#ifndef QueueConsts_h
#define QueueConsts_h

#define QueueCloseUrl @"queueit://close"
#define QueueRestartSessionUrl @"queueit://restartSession"
#define SDKVersion @"iOS-3.1.14";

#endif
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
#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 QueueViewDidAppearDelegate;
@protocol QueueDisabledDelegate;
@protocol QueueITUnavailableDelegate;
@protocol QueueUserExitedDelegate;
@protocol QueueViewClosedDelegate;
@protocol QueueSessionRestartDelegate;
@protocol QueueSuccessDelegate;

@interface QueueITEngine : NSObject<ViewUserExitedDelegate, ViewUserClosedDelegate, ViewSessionRestartDelegate, ViewQueuePassedDelegate, ViewQueueDidAppearDelegate, ViewQueueWillOpenDelegate, ViewQueueUpdatePageUrlDelegate, ProviderQueueDisabledDelegate, ProviderQueueITUnavailableDelegate, ProviderSuccessDelegate>

@property (nonatomic, weak)id<QueuePassedDelegate> _Nullable queuePassedDelegate;
@property (nonatomic, weak)id<QueueViewWillOpenDelegate> _Nullable queueViewWillOpenDelegate;
@property (nonatomic, weak)id<QueueViewDidAppearDelegate> _Nullable queueViewDidAppearDelegate;
@property (nonatomic, weak)id<QueueDisabledDelegate> _Nullable queueDisabledDelegate;
@property (nonatomic, weak)id<QueueITUnavailableDelegate> _Nullable queueITUnavailableDelegate;
@property (nonatomic, weak)id<QueueUserExitedDelegate> _Nullable queueUserExitedDelegate;
@property (nonatomic, weak)id<QueueViewClosedDelegate> _Nullable queueViewClosedDelegate;
@property (nonatomic, weak)id<QueueSessionRestartDelegate> _Nullable queueSessionRestartDelegate;
@property (nonatomic, weak)id<QueueSuccessDelegate> _Nullable queueSuccessDelegate;

@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)isUserInQueue;
-(BOOL)isRequestInProgress;

@end

@protocol QueuePassedDelegate <NSObject>
-(void)notifyYourTurn:(QueuePassedInfo* _Nullable) queuePassedInfo;
@end

@protocol QueueSessionRestartDelegate <NSObject>
-(void)notifySessionRestart;
@end


@protocol QueueViewWillOpenDelegate <NSObject>
-(void)notifyQueueViewWillOpen;
@end

@protocol QueueViewDidAppearDelegate <NSObject>
-(void)notifyQueueViewDidAppear;
@end

@protocol QueueUserExitedDelegate <NSObject>
-(void)notifyUserExited;
@end

@protocol QueueViewClosedDelegate <NSObject>
-(void)notifyViewClosed;
@end

@protocol QueueDisabledDelegate <NSObject>
-(void)notifyQueueDisabled:(QueueDisabledInfo* _Nullable) queueDisabledInfo;
@end

@protocol QueueITUnavailableDelegate <NSObject>
-(void)notifyQueueITUnavailable:(NSString* _Nonnull) errorMessage;
@end

@protocol QueueSuccessDelegate <NSObject>
-(void)notifyQueueSuccess:(QueueTryPassResult* _Nullable) queuePassResult;
@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#import <Foundation/Foundation.h>

@interface QueuePassedInfo : NSObject

@property (nonatomic, strong) NSString* _Nullable queueitToken;

-(instancetype _Nonnull )initWithQueueitToken:(NSString* _Nullable) queueitToken;

@end
Binary file not shown.

0 comments on commit c658e1d

Please sign in to comment.