Skip to content

Commit

Permalink
feat: Add PFObject.isDataAvailableForKey to check if data is availa…
Browse files Browse the repository at this point in the history
…ble for individual key (#1756)
  • Loading branch information
dplewis authored Apr 6, 2024
1 parent b9239d7 commit dd05d41
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Parse/Parse/Internal/Object/PFObjectPrivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@
- (void)setHasBeenFetched:(BOOL)fetched;
- (void)_setDeleted:(BOOL)deleted;

- (BOOL)isDataAvailableForKey:(NSString *)key;

- (BOOL)_hasChanges;
- (BOOL)_hasOutstandingOperations;
- (PFOperationSet *)unsavedChanges;
Expand Down
7 changes: 7 additions & 0 deletions Parse/Parse/Source/PFObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,13 @@ NS_REQUIRES_PROPERTY_DEFINITIONS
*/
@property (nonatomic, assign, readonly, getter=isDataAvailable) BOOL dataAvailable;

/**
Checks whether the `PFObject` has data for given key
@return `YES` if data is available for given key
*/
- (BOOL)isDataAvailableForKey:(NSString *)key;

#if TARGET_OS_IOS

/**
Expand Down

0 comments on commit dd05d41

Please sign in to comment.