LuxChat  2.0
Instant messenger for iOS
Class Methods | Properties | List of all members
PFSession Class Reference

#import <PFSession.h>

Inheritance diagram for PFSession:
PFObject

Class Methods

(BFTask< PFSession * > *) + getCurrentSessionInBackground
 
(void) + getCurrentSessionInBackgroundWithBlock:
 
- Class Methods inherited from PFObject
(instancetype) + objectWithClassName:
 
(instancetype) + objectWithClassName:dictionary:
 
(instancetype) + objectWithoutDataWithClassName:objectId:
 
(BFTask< NSNumber * > *) + saveAllInBackground:
 
More...
 
(void) + saveAllInBackground:block:
 
(BFTask< NSNumber * > *) + deleteAllInBackground:
 
More...
 
(void) + deleteAllInBackground:block:
 
(BFTask< NSArray< __kindof PFObject * > * > *) + fetchAllInBackground:
 
More...
 
(void) + fetchAllInBackground:block:
 
(BFTask< NSArray< __kindof PFObject * > * > *) + fetchAllIfNeededInBackground:
 
(void) + fetchAllIfNeededInBackground:block:
 
(BFTask< NSNumber * > *) + pinAllInBackground:
 
More...
 
(void) + pinAllInBackground:block:
 
(BFTask< NSNumber * > *) + pinAllInBackground:withName:
 
(void) + pinAllInBackground:withName:block:
 
(BFTask< NSNumber * > *) + unpinAllObjectsInBackground
 
More...
 
(void) + unpinAllObjectsInBackgroundWithBlock:
 
(BFTask< NSNumber * > *) + unpinAllObjectsInBackgroundWithName:
 
(void) + unpinAllObjectsInBackgroundWithName:block:
 
(BFTask< NSNumber * > *) + unpinAllInBackground:
 
(void) + unpinAllInBackground:block:
 
(BFTask< NSNumber * > *) + unpinAllInBackground:withName:
 
(void) + unpinAllInBackground:withName:block:
 
(void) + saveAllInBackground:target:selector:
 
More...
 
(void) + fetchAllInBackground:target:selector:
 
More...
 
(void) + fetchAllIfNeededInBackground:target:selector:
 
(void) + deleteAllInBackground:target:selector:
 
More...
 
(BOOL) + PF_SWIFT_UNAVAILABLE
 
More...
 
(BOOL) + saveAll:
 
More...
 
(BOOL) + saveAll:error:
 
(nullable NSArray< __kindof PFObject * > *) + fetchAll:
 
More...
 
(nullable NSArray< __kindof PFObject * > *) + fetchAll:error:
 
(nullable NSArray< __kindof PFObject * > *) + fetchAllIfNeeded:
 
(nullable NSArray< __kindof PFObject * > *) + fetchAllIfNeeded:error:
 
(BOOL) + deleteAll:
 
More...
 
(BOOL) + deleteAll:error:
 
(BOOL) + pinAll:
 
More...
 
(BOOL) + pinAll:error:
 
(BOOL) + pinAll:withName:
 
(BOOL) + pinAll:withName:error:
 
(BOOL) + unpinAllObjects:
 
(BOOL) + unpinAllObjectsWithName:
 
(BOOL) + unpinAllObjectsWithName:error:
 
(BOOL) + unpinAll:
 
(BOOL) + unpinAll:error:
 
(BOOL) + unpinAll:withName:
 
(BOOL) + unpinAll:withName:error:
 

Properties

NSString * sessionToken
 
- Properties inherited from PFObject
NSString * parseClassName
 
More...
 
NSString * objectId
 
NSDate * updatedAt
 
NSDate * createdAt
 
PFACLACL
 
NSArray< NSString * > * allKeys
 
BOOL dataAvailable
 
More...
 
BOOL dirty
 
More...
 

Additional Inherited Members

- Instance Methods inherited from PFObject
(instancetype) - initWithClassName:
 
More...
 
(nullable id) - objectForKey:
 
More...
 
(void) - setObject:forKey:
 
(void) - removeObjectForKey:
 
(nullable id) - objectForKeyedSubscript:
 
(void) - setObject:forKeyedSubscript:
 
(PFRelation *) - relationForKey:
 
(PFRelation *) - relationforKey:
 
(void) - revert
 
(void) - revertObjectForKey:
 
(void) - addObject:forKey:
 
More...
 
(void) - addObjectsFromArray:forKey:
 
(void) - addUniqueObject:forKey:
 
(void) - addUniqueObjectsFromArray:forKey:
 
(void) - removeObject:forKey:
 
(void) - removeObjectsInArray:forKey:
 
(void) - incrementKey:
 
More...
 
(void) - incrementKey:byAmount:
 
(BFTask< NSNumber * > *) - saveInBackground
 
More...
 
(void) - saveInBackgroundWithBlock:
 
(BFTask< NSNumber * > *) - PF_WATCH_UNAVAILABLE
 
(void) - saveEventually:
 
(BFTask< __kindof PFObject * > *) - fetchInBackground
 
(void) - fetchInBackgroundWithBlock:
 
(BFTask< __kindof PFObject * > *) - fetchIfNeededInBackground
 
(void) - fetchIfNeededInBackgroundWithBlock:
 
(BFTask< __kindof PFObject * > *) - fetchFromLocalDatastoreInBackground
 
More...
 
(void) - fetchFromLocalDatastoreInBackgroundWithBlock:
 
(BFTask< NSNumber * > *) - deleteInBackground
 
More...
 
(void) - deleteInBackgroundWithBlock:
 
(BFTask< NSNumber * > *) - PF_WATCH_UNAVAILABLE
 
(BOOL) - isDirtyForKey:
 
(BFTask< NSNumber * > *) - pinInBackground
 
More...
 
(void) - pinInBackgroundWithBlock:
 
(BFTask< NSNumber * > *) - pinInBackgroundWithName:
 
(void) - pinInBackgroundWithName:block:
 
(BFTask< NSNumber * > *) - unpinInBackground
 
More...
 
(void) - unpinInBackgroundWithBlock:
 
(BFTask< NSNumber * > *) - unpinInBackgroundWithName:
 
(void) - unpinInBackgroundWithName:block:
 
(void) - saveInBackgroundWithTarget:selector:
 
More...
 
(void) - refreshInBackgroundWithTarget:selector:
 
More...
 
(void) - fetchInBackgroundWithTarget:selector:
 
(void) - fetchIfNeededInBackgroundWithTarget:selector:
 
(void) - deleteInBackgroundWithTarget:selector:
 
More...
 
(BOOL) - PF_SWIFT_UNAVAILABLE
 
More...
 
(nullable instancetype) - PF_SWIFT_UNAVAILABLE
 
More...
 
(nullable instancetype) - PF_SWIFT_UNAVAILABLE
 
(nullable instancetype) - PF_SWIFT_UNAVAILABLE
 
More...
 
(BOOL) - PF_SWIFT_UNAVAILABLE
 
More...
 
(BOOL) - PF_SWIFT_UNAVAILABLE
 
More...
 
(BOOL) - PF_SWIFT_UNAVAILABLE
 
More...
 
(BOOL) - save:
 
(nullable instancetype) - fetch:
 
(nullable instancetype) - fetchIfNeeded:
 
(nullable instancetype) - fetchFromLocalDatastore:
 
(BOOL) - delete:
 
(BOOL) - pin:
 
(BOOL) - pinWithName:
 
(BOOL) - pinWithName:error:
 
(BOOL) - unpin:
 
(BOOL) - unpinWithName:
 
(BOOL) - unpinWithName:error:
 

Detailed Description

PFSession is a local representation of a session. This class is a subclass of a PFObject, and retains the same functionality as any other subclass of PFObject.

Method Documentation

+ (BFTask<PFSession *> *) getCurrentSessionInBackground

Asynchronously* fetches a PFSession object related to the current user.

Returns
A task that is completed with an instance of PFSession class or is faulted if the operation fails.
+ (void) getCurrentSessionInBackgroundWithBlock: (nullable PFSessionResultBlock)  block

Asynchronously* fetches a PFSession object related to the current user.

Parameters
blockThe block to execute when the operation completes. It should have the following argument signature: ^(PFSession *session, NSError *error).

Property Documentation

- (NSString*) sessionToken
readnonatomiccopy

The session token string for this session.


The documentation for this class was generated from the following file: