-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathLBRESTAdapter.h
46 lines (38 loc) · 1.22 KB
/
LBRESTAdapter.h
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
/**
* @file LBRESTAdapter.h
*
* @author Michael Schoonmaker
* @copyright (c) 2013 StrongLoop. All rights reserved.
*/
#import "SLRemoting.h"
#import "LBModel.h"
#import "LBPersistedModel.h"
/**
* An extension to the vanilla SLRESTAdapter to make working with LBModels
* easier.
*/
@interface LBRESTAdapter : SLRESTAdapter
/**
* Returns a new LBModelRepository representing the named model type.
*
* @param name The model name.
* @return A new repository instance.
*/
- (LBModelRepository *)repositoryWithModelName:(NSString *)name;
/**
* Returns a new LBPersistedModelRepository representing the named model type.
*
* @param name The model name.
* @return A new repository instance.
*/
- (LBPersistedModelRepository *)repositoryWithPersistedModelName:(NSString *)name;
- (LBModelRepository *)repositoryWithModelName:(NSString *)name persisted:(BOOL)persisted
__attribute((deprecated("use repositoryWithModelName or repositoryWithPersistedModelName")));
/**
* Returns a new LBModelRepository from the given subclass.
*
* @param type A subclass of LBModelRepository to use.
* @return A new repository instance.
*/
- (LBModelRepository *)repositoryWithClass:(Class)type;
@end