This commit is contained in:
Norbert Schmidt
2018-05-15 12:08:35 +02:00
commit 2a483f5b86
129 changed files with 8809 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
//
// PFRelation.h
// Parse
//
// Created by Shyam Jayaraman on 5/11/12.
// Copyright (c) 2012 Parse Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PFObject.h"
#import "PFQuery.h"
/*!
A 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
@property (nonatomic, retain) NSString *targetClass;
#pragma mark Accessing objects
/*!
@return A ParseQuery that can be used to get objects in this relation.
*/
- (PFQuery *)query;
#pragma mark Modifying relations
/*!
Adds a relation to the passed in object.
@param object ParseObject to add relation to.
*/
- (void)addObject:(PFObject *)object;
/*!
Removes a relation to the passed in object.
@param object ParseObject to add relation to.
*/
- (void)removeObject:(PFObject *)object;
@end