File tree 4 files changed +6
-7
lines changed
Internal/Push/ChannelsController
4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ PF_TV_UNAVAILABLE PF_WATCH_UNAVAILABLE @interface PFPushChannelsController : NSO
36
36
// / @name Get
37
37
// /--------------------------------------
38
38
39
- - (BFTask *)getSubscribedChannelsAsync ;
39
+ - (BFTask PF_GENERIC ( NSSet < NSString *> *) *)getSubscribedChannelsAsync;
40
40
41
41
// /--------------------------------------
42
42
// / @name Subscribe
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ + (instancetype)controllerWithDataSource:(nonnull id<PFCurrentInstallationContro
49
49
#pragma mark - Get
50
50
// /--------------------------------------
51
51
52
- - (BFTask *)getSubscribedChannelsAsync {
52
+ - (BFTask PF_GENERIC ( NSSet < NSString *> *) *)getSubscribedChannelsAsync {
53
53
return [[self _getCurrentObjectAsync ] continueWithSuccessBlock: ^id (BFTask *task) {
54
54
PFInstallation *installation = task.result ;
55
55
Original file line number Diff line number Diff line change @@ -413,7 +413,7 @@ PF_TV_UNAVAILABLE PF_WATCH_UNAVAILABLE @interface PFPush : NSObject <NSCopying>
413
413
414
414
@returns Returns an `NSSet` containing all the channel names this device is subscribed to.
415
415
*/
416
- + (nullable NSSet *)getSubscribedChannels : (NSError **)error ;
416
+ + (nullable NSSet PF_GENERIC ( NSString *) *)getSubscribedChannels:(NSError **)error;
417
417
418
418
/* !
419
419
@abstract *Asynchronously* get all the channels that this device is subscribed to.
@@ -437,8 +437,7 @@ PF_TV_UNAVAILABLE PF_WATCH_UNAVAILABLE @interface PFPush : NSObject <NSCopying>
437
437
It should have the following signature: `(void)callbackWithResult:(NSSet *)result error:(NSError *)error`.
438
438
`error` will be `nil` on success and set if there was an error.
439
439
*/
440
- + (void )getSubscribedChannelsInBackgroundWithTarget : (id )target
441
- selector : (SEL )selector ;
440
+ + (void )getSubscribedChannelsInBackgroundWithTarget : (id )target selector : (SEL )selector ;
442
441
443
442
/* !
444
443
@abstract *Synchrnously* subscribes the device to a channel of push notifications.
Original file line number Diff line number Diff line change @@ -316,11 +316,11 @@ + (void)sendPushDataToQueryInBackground:(PFQuery *)query
316
316
317
317
#pragma mark Get
318
318
319
- + (NSSet *)getSubscribedChannels : (NSError **)error {
319
+ + (NSSet PF_GENERIC ( NSString *) *)getSubscribedChannels:(NSError **)error {
320
320
return [[self getSubscribedChannelsInBackground ] waitForResult: error];
321
321
}
322
322
323
- + (BFTask *)getSubscribedChannelsInBackground {
323
+ + (BFTask PF_GENERIC ( NSSet < NSString *> *) *)getSubscribedChannelsInBackground {
324
324
return [[self channelsController ] getSubscribedChannelsAsync ];
325
325
}
326
326
You can’t perform that action at this time.
0 commit comments