Skip to content

Commit 9453d35

Browse files
Added BFTask generics to header of PFUser
1 parent c67b8dc commit 9453d35

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Parse/PFUser.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ typedef void(^PFUserLogoutResultBlock)(NSError *PF_NULLABLE_S error);
143143
144144
@returns The task, that encapsulates the work being done.
145145
*/
146-
- (BFTask *)signUpInBackground;
146+
- (BFTask PF_GENERIC(NSNumber *)*)signUpInBackground;
147147

148148
/*!
149149
@abstract Signs up the user *asynchronously*.
@@ -219,8 +219,8 @@ typedef void(^PFUserLogoutResultBlock)(NSError *PF_NULLABLE_S error);
219219
220220
@returns The task, that encapsulates the work being done.
221221
*/
222-
+ (BFTask *)logInWithUsernameInBackground:(NSString *)username
223-
password:(NSString *)password;
222+
+ (BFTask PF_GENERIC(__kindof PFUser *)*)logInWithUsernameInBackground:(NSString *)username
223+
password:(NSString *)password;
224224

225225
/*!
226226
@abstract Makes an *asynchronous* request to login a user with specified credentials.
@@ -295,7 +295,7 @@ typedef void(^PFUserLogoutResultBlock)(NSError *PF_NULLABLE_S error);
295295
296296
@returns The task, that encapsulates the work being done.
297297
*/
298-
+ (BFTask *)becomeInBackground:(NSString *)sessionToken;
298+
+ (BFTask PF_GENERIC(__kindof PFUser *)*)becomeInBackground:(NSString *)sessionToken;
299299

300300
/*!
301301
@abstract Makes an *asynchronous* request to become a user with the given session token.
@@ -338,7 +338,7 @@ typedef void(^PFUserLogoutResultBlock)(NSError *PF_NULLABLE_S error);
338338
@returns An instance of `BFTask` that is completed when
339339
revocable sessions are enabled and currentUser token is migrated.
340340
*/
341-
+ (BFTask *)enableRevocableSessionInBackground;
341+
+ (BFTask PF_GENERIC(NSNull *)*)enableRevocableSessionInBackground;
342342

343343
/*!
344344
@abstract Enables revocable sessions and upgrades the currentUser session token to use revocable session if needed.
@@ -369,7 +369,7 @@ typedef void(^PFUserLogoutResultBlock)(NSError *PF_NULLABLE_S error);
369369
370370
@returns An instance of `BFTask`, that is resolved with `nil` result when logging out completes.
371371
*/
372-
+ (BFTask *)logOutInBackground;
372+
+ (BFTask PF_GENERIC(NSNull *)*)logOutInBackground;
373373

374374
/*!
375375
@abstract *Asynchronously* logs out the currently logged in user.
@@ -417,7 +417,7 @@ typedef void(^PFUserLogoutResultBlock)(NSError *PF_NULLABLE_S error);
417417
@param email Email of the account to send a reset password request.
418418
@returns The task, that encapsulates the work being done.
419419
*/
420-
+ (BFTask *)requestPasswordResetForEmailInBackground:(NSString *)email;
420+
+ (BFTask PF_GENERIC(NSNumber *)*)requestPasswordResetForEmailInBackground:(NSString *)email;
421421

422422
/*!
423423
@abstract Send a password reset request *asynchronously* for a specified email.

0 commit comments

Comments
 (0)