11import Foundation
22
3- protocol WaitingRoomProviderDelegate : AnyObject {
3+ public protocol WaitingRoomProviderDelegate : AnyObject {
44 func notifyProviderSuccess( queuePassResult: TryPassResult )
55 func notifyProviderFailure( errorMessage: String ? , errorCode: Int )
66}
@@ -15,11 +15,11 @@ enum QueueITRuntimeError: Int {
1515 ]
1616}
1717
18- final class WaitingRoomProvider {
18+ public final class WaitingRoomProvider {
1919 static let maxRetrySec = 10
2020 static let initialWaitRetrySec = 1
2121
22- weak var delegate : WaitingRoomProviderDelegate ?
22+ public weak var delegate : WaitingRoomProviderDelegate ?
2323
2424 private let customerId : String
2525 private let eventOrAliasId : String
@@ -30,27 +30,27 @@ final class WaitingRoomProvider {
3030 private var requestInProgress : Bool = false
3131 private let internetReachability : Reachability
3232
33- init ( customerId: String , eventOrAliasId: String , layoutName: String ? = nil , language: String ? = nil ) {
33+ public init ( customerId: String , eventOrAliasId: String , layoutName: String ? = nil , language: String ? = nil ) {
3434 self . customerId = customerId
3535 self . eventOrAliasId = eventOrAliasId
3636 self . layoutName = layoutName
3737 self . language = language
3838 internetReachability = Reachability . reachabilityForInternetConnection ( )
3939 }
4040
41- func tryPass( ) throws {
41+ public func tryPass( ) throws {
4242 try tryEnqueue ( enqueueToken: nil , enqueueKey: nil )
4343 }
4444
45- func tryPassWithEnqueueToken( _ enqueueToken: String ? ) throws {
45+ public func tryPassWithEnqueueToken( _ enqueueToken: String ? ) throws {
4646 try tryEnqueue ( enqueueToken: enqueueToken, enqueueKey: nil )
4747 }
4848
49- func tryPassWithEnqueueKey( _ enqueueKey: String ? ) throws {
49+ public func tryPassWithEnqueueKey( _ enqueueKey: String ? ) throws {
5050 try tryEnqueue ( enqueueToken: nil , enqueueKey: enqueueKey)
5151 }
5252
53- func isRequestInProgress( ) -> Bool {
53+ public func isRequestInProgress( ) -> Bool {
5454 return requestInProgress
5555 }
5656}
0 commit comments