25 lines
651 B
Objective-C
25 lines
651 B
Objective-C
#import <Foundation/Foundation.h>
|
|
#import <Ably/ARTTypes.h>
|
|
#import <Ably/ARTPushDeviceRegistrations.h>
|
|
#import <Ably/ARTPushChannelSubscriptions.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@protocol ARTPushAdminProtocol
|
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
|
|
/// Publish a push notification.
|
|
- (void)publish:(ARTPushRecipient *)recipient data:(ARTJsonObject *)data callback:(nullable ARTCallback)callback;
|
|
|
|
@end
|
|
|
|
@interface ARTPushAdmin : NSObject <ARTPushAdminProtocol>
|
|
|
|
@property (nonatomic, readonly) ARTPushDeviceRegistrations *deviceRegistrations;
|
|
@property (nonatomic, readonly) ARTPushChannelSubscriptions *channelSubscriptions;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|