-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPFRelation.h
More file actions
61 lines (47 loc) · 1.38 KB
/
PFRelation.h
File metadata and controls
61 lines (47 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//
// PFRelation.h
//
// Copyright 2011-present Parse Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#if TARGET_OS_IPHONE
#import <Parse/PFNullability.h>
#import <Parse/PFObject.h>
#import <Parse/PFQuery.h>
#else
#import <ParseOSX/PFNullability.h>
#import <ParseOSX/PFObject.h>
#import <ParseOSX/PFQuery.h>
#endif
PF_ASSUME_NONNULL_BEGIN
/*!
The `PFRelation` class that is used to access all of the children of a many-to-many relationship.
Each instance of `PFRelation` is associated with a particular parent object and key.
*/
@interface PFRelation : NSObject
/*!
@abstract The name of the class of the target child objects.
*/
@property (nonatomic, strong) NSString *targetClass;
///--------------------------------------
/// @name Accessing Objects
///--------------------------------------
/*!
@abstract Returns a <PFQuery> object that can be used to get objects in this relation.
*/
- (PF_NULLABLE PFQuery *)query;
///--------------------------------------
/// @name Modifying Relations
///--------------------------------------
/*!
@abstract Adds a relation to the passed in object.
@param object A <PFObject> object to add relation to.
*/
- (void)addObject:(PFObject *)object;
/*!
@abstract Removes a relation to the passed in object.
@param object A <PFObject> object to add relation to.
*/
- (void)removeObject:(PFObject *)object;
@end
PF_ASSUME_NONNULL_END