-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
no functionality here TODO why has ARTChannelProtocol jumped around in Xcode project here? try again
- Loading branch information
1 parent
1832bad
commit 35a766a
Showing
9 changed files
with
131 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#import "ARTWrapperSDKProxyPushChannel+Private.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface ARTWrapperSDKProxyPushChannel () | ||
|
||
@property (nonatomic, readonly) ARTPushChannel *underlyingPushChannel; | ||
@property (nonatomic, readonly) ARTWrapperSDKProxyOptions *proxyOptions; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END | ||
|
||
@implementation ARTWrapperSDKProxyPushChannel | ||
|
||
- (instancetype)initWithPushChannel:(ARTPushChannel *)pushChannel proxyOptions:(ARTWrapperSDKProxyOptions *)proxyOptions { | ||
if (self = [super init]) { | ||
_underlyingPushChannel = pushChannel; | ||
_proxyOptions = proxyOptions; | ||
} | ||
|
||
return self; | ||
} | ||
|
||
- (BOOL)listSubscriptions:(nonnull NSStringDictionary *)params callback:(nonnull ARTPaginatedPushChannelCallback)callback error:(NSError * _Nullable __autoreleasing * _Nullable)errorPtr { | ||
return [self.underlyingPushChannel listSubscriptions:params callback:callback error:errorPtr]; | ||
} | ||
|
||
- (void)subscribeClient { | ||
[self.underlyingPushChannel subscribeClient]; | ||
} | ||
|
||
- (void)subscribeClient:(nullable ARTCallback)callback { | ||
[self.underlyingPushChannel subscribeClient:callback]; | ||
} | ||
|
||
- (void)subscribeDevice { | ||
[self.underlyingPushChannel subscribeDevice]; | ||
} | ||
|
||
- (void)subscribeDevice:(nullable ARTCallback)callback { | ||
[self.underlyingPushChannel subscribeDevice:callback]; | ||
} | ||
|
||
- (void)unsubscribeClient { | ||
[self.underlyingPushChannel unsubscribeClient]; | ||
} | ||
|
||
- (void)unsubscribeClient:(nullable ARTCallback)callback { | ||
[self.underlyingPushChannel unsubscribeClient:callback]; | ||
} | ||
|
||
- (void)unsubscribeDevice { | ||
[self.underlyingPushChannel unsubscribeDevice]; | ||
} | ||
|
||
- (void)unsubscribeDevice:(nullable ARTCallback)callback { | ||
[self.underlyingPushChannel unsubscribeDevice:callback]; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
Source/PrivateHeaders/Ably/ARTWrapperSDKProxyPushChannel+Private.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#import <Ably/ARTWrapperSDKProxyPushChannel.h> | ||
|
||
@class ARTWrapperSDKProxyOptions; | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface ARTWrapperSDKProxyPushChannel () | ||
|
||
- (instancetype)initWithPushChannel:(ARTPushChannel *)pushChannel | ||
proxyOptions:(ARTWrapperSDKProxyOptions *)proxyOptions NS_DESIGNATED_INITIALIZER; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#import <Foundation/Foundation.h> | ||
#import <Ably/ARTPushChannel.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** | ||
* An object which wraps an instance of `ARTPushChannel` and provides a similar API. It allows Ably-authored wrapper SDKs to send analytics information so that Ably can track the usage of the wrapper SDK. | ||
* | ||
* - Important: This class should only be used by Ably-authored SDKs. | ||
*/ | ||
NS_SWIFT_SENDABLE | ||
@interface ARTWrapperSDKProxyPushChannel : NSObject <ARTPushChannelProtocol> | ||
|
||
- (instancetype)init NS_UNAVAILABLE; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters