My Project
 All Classes Functions Properties
CBCollection.h
1 /*******************************************************************************
2  * Copyright 2013 ClearBlade, Inc
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Any redistribution of this program in any form must include this copyright
9  *******************************************************************************/
10 
11 #import <Foundation/Foundation.h>
12 #import "CBQuery.h"
13 #import "CBAPI.h"
17 @interface CBCollection : NSObject
21 @property (strong, nonatomic) NSString *collectionID;
27 -(id) initWithCollectionID: (NSString *)colID;
33 -(void) fetchWithSuccessCallback: (void (^)(NSMutableArray *))successCallback ErrorCallback: (void (^)(NSError *, __strong id))failureCallback;
40 -(void) fetchWithQuery: (CBQuery*) query SuccessCallback: (void (^)(NSMutableArray *))successCallback ErrorCallback: (void (^)(NSError *, __strong id))failureCallback;
47 -(void) createWithData: (NSMutableDictionary *)data WithSuccessCallback: (void (^)(CBItem *))successCallback ErrorCallback: (void (^)(NSError *, __strong id))failureCallback;
55 -(void) updateWithQuery: (CBQuery *) query WithChanges:(NSMutableDictionary *)changes SuccessCallback: (void (^)(NSMutableArray *))successCallback ErrorCallback: (void (^)(NSError *, __strong id))failureCallback;
62 -(void) removeWithQuery: (CBQuery*) query SuccessCallback: (void (^)(NSMutableArray *))successCallback ErrorCallback: (void (^)(NSError *, __strong id))failureCallback;
63 
64 @end
NSString * collectionID
Definition: CBCollection.h:21
Definition: CBCollection.h:17
Definition: CBQuery.h:16
Definition: CBItem.h:15