forked from soffes/cheddarkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CDKRemoteManagedObject.m
42 lines (28 loc) · 1023 Bytes
/
CDKRemoteManagedObject.m
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
//
// CDKRemoteManagedObject.m
// Cheddar
//
// Created by Sam Soffes on 6/24/12.
// Copyright (c) 2012 Nothing Magical. All rights reserved.
//
#import "CDKRemoteManagedObject.h"
@implementation CDKRemoteManagedObject
- (void)create {
[self createWithSuccess:nil failure:nil];
}
- (void)createWithSuccess:(void(^)(void))success failure:(void(^)(AFJSONRequestOperation *remoteOperation, NSError *error))failure {
// Subclasses must override this method
}
- (void)update {
[self updateWithSuccess:nil failure:nil];
}
- (void)updateWithSuccess:(void(^)(void))success failure:(void(^)(AFJSONRequestOperation *remoteOperation, NSError *error))failure {
// Subclasses must override this method
}
+ (void)sortWithObjects:(NSArray *)objects {
[self sortWithObjects:objects success:nil failure:nil];
}
+ (void)sortWithObjects:(NSArray *)objects success:(void(^)(void))success failure:(void(^)(AFJSONRequestOperation *remoteOperation, NSError *error))failure {
// Subclasses must override this method
}
@end