12
12
#import < Bolts/BFTask.h>
13
13
14
14
#import < Parse/PFConstants.h>
15
+ #import < Parse/PFInstallation.h>
15
16
16
- @class PFQuery;
17
+ @class PFQuery PF_GENERIC (PFGenericObject : PFObject *) ;
17
18
18
19
PF_ASSUME_NONNULL_BEGIN
19
20
@@ -49,7 +50,7 @@ PF_ASSUME_NONNULL_BEGIN
49
50
@param channels The array of channels to set for this push.
50
51
Each channel name must start with a letter and contain only letters, numbers, dashes, and underscores.
51
52
*/
52
- - (void )setChannels : (PF_NULLABLE NSArray *)channels ;
53
+ - (void )setChannels : (PF_NULLABLE NSArray PF_GENERIC ( NSString *) *)channels;
53
54
54
55
/* !
55
56
@abstract Sets an installation query to which this push notification will be sent.
@@ -58,7 +59,7 @@ PF_ASSUME_NONNULL_BEGIN
58
59
59
60
@param query The installation query to set for this push.
60
61
*/
61
- - (void )setQuery : (PF_NULLABLE PFQuery *)query ;
62
+ - (void )setQuery : (PF_NULLABLE PFQuery PF_GENERIC (PFInstallation *) *)query;
62
63
63
64
/* !
64
65
@abstract Sets an alert message for this push notification.
@@ -199,7 +200,7 @@ PF_ASSUME_NONNULL_BEGIN
199
200
200
201
@returns Returns whether the send succeeded.
201
202
*/
202
- + (BOOL )sendPushMessageToQuery : (PFQuery *)query
203
+ + (BOOL )sendPushMessageToQuery : (PFQuery PF_GENERIC (PFInstallation *) *)query
203
204
withMessage:(NSString *)message
204
205
error:(NSError **)error;
205
206
@@ -211,7 +212,7 @@ PF_ASSUME_NONNULL_BEGIN
211
212
212
213
@returns The task, that encapsulates the work being done.
213
214
*/
214
- + (BFTask PF_GENERIC (NSNumber *)*)sendPushMessageToQueryInBackground:(PFQuery *)query
215
+ + (BFTask PF_GENERIC (NSNumber *)*)sendPushMessageToQueryInBackground:(PFQuery PF_GENERIC (PFInstallation *) *)query
215
216
withMessage:(NSString *)message;
216
217
217
218
/* !
@@ -223,7 +224,7 @@ PF_ASSUME_NONNULL_BEGIN
223
224
@param block The block to execute.
224
225
It should have the following argument signature: `^(BOOL succeeded, NSError *error)`
225
226
*/
226
- + (void )sendPushMessageToQueryInBackground : (PFQuery *)query
227
+ + (void )sendPushMessageToQueryInBackground:(PFQuery PF_GENERIC (PFInstallation *) *)query
227
228
withMessage:(NSString *)message
228
229
block:(PF_NULLABLE PFBooleanResultBlock)block;
229
230
@@ -337,7 +338,7 @@ PF_ASSUME_NONNULL_BEGIN
337
338
338
339
@returns Returns whether the send succeeded.
339
340
*/
340
- + (BOOL )sendPushDataToQuery : (PFQuery *)query
341
+ + (BOOL )sendPushDataToQuery : (PFQuery PF_GENERIC (PFInstallation *) *)query
341
342
withData:(NSDictionary *)data
342
343
error:(NSError **)error;
343
344
@@ -352,7 +353,7 @@ PF_ASSUME_NONNULL_BEGIN
352
353
353
354
@returns The task, that encapsulates the work being done.
354
355
*/
355
- + (BFTask PF_GENERIC (NSNumber *)*)sendPushDataToQueryInBackground:(PFQuery *)query
356
+ + (BFTask PF_GENERIC (NSNumber *)*)sendPushDataToQueryInBackground:(PFQuery PF_GENERIC (PFInstallation *) *)query
356
357
withData:(NSDictionary *)data;
357
358
358
359
/* !
@@ -366,7 +367,7 @@ PF_ASSUME_NONNULL_BEGIN
366
367
@param block The block to execute.
367
368
It should have the following argument signature: `^(BOOL succeeded, NSError *error)`.
368
369
*/
369
- + (void )sendPushDataToQueryInBackground : (PFQuery *)query
370
+ + (void )sendPushDataToQueryInBackground:(PFQuery PF_GENERIC (PFInstallation *) *)query
370
371
withData:(NSDictionary *)data
371
372
block:(PF_NULLABLE PFBooleanResultBlock)block;
372
373
0 commit comments