File tree Expand file tree Collapse file tree 7 files changed +4
-38
lines changed Expand file tree Collapse file tree 7 files changed +4
-38
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,6 @@ TODO: Add long description of the pod here.
66
66
end
67
67
68
68
s . subspec 'Model' do |sp |
69
- sp . dependency 'Protobuf' , '~> 3.0'
70
-
71
69
sp . source_files = 'GDDataDrivenView/Classes/Model/**/*' , 'GDDataDrivenView/Classes/Service/**/*'
72
70
end
73
71
end
Original file line number Diff line number Diff line change 1
1
#import " GDDModel.h"
2
2
3
- @class GPBMessage;
4
-
5
3
@interface GDDListModel <__covariant ObjectType> : GDDModel
6
4
7
- @property (nonatomic , readonly ) NSArray <ObjectType> *results;
8
- @property (nonatomic , readonly ) NSString * nextCursor;
5
+ @property (nonatomic ) NSArray <ObjectType> *results;
6
+ @property (nonatomic ) id nextCursor;
9
7
10
- - (instancetype )initWithResults : (NSArray *)results response : (GPBMessage *) response ;
8
+ - (instancetype )initWithResults : (NSArray *)results ;
11
9
12
10
@end
Original file line number Diff line number Diff line change 1
1
#import " GDDListModel.h"
2
- #import " GPBMessage.h"
3
2
4
3
@interface GDDListModel ()
5
- @property (nonatomic , readonly ) GPBMessage *response;
6
4
@end
7
5
8
6
@implementation GDDListModel
9
7
10
- - (instancetype )initWithResults : (NSArray *)results response : (GPBMessage *) response {
8
+ - (instancetype )initWithResults : (NSArray *)results {
11
9
self = [super init ];
12
10
if (self) {
13
11
_results = results;
14
- _response = response;
15
12
}
16
13
17
14
return self;
18
15
}
19
-
20
-
21
- - (NSString *)nextCursor {
22
- if ([self .response respondsToSelector: @selector (hasNextPage )] && ![[self .response valueForKey: @" hasNextPage" ] boolValue ]) {
23
- return nil ;
24
- }
25
- return [self .response respondsToSelector: @selector (pageContext )] ? [self .response valueForKey: @" pageContext" ] : nil ;
26
- }
27
-
28
16
@end
Original file line number Diff line number Diff line change 1
- //
2
- // Created by Larry Tin on 16/9/26.
3
- //
4
-
5
1
#import < Foundation/Foundation.h>
6
2
7
-
8
3
@interface GDDModel : NSObject
9
4
@end
Original file line number Diff line number Diff line change 1
- //
2
- // Created by Larry Tin on 16/9/26.
3
- //
4
-
5
1
#import " GDDModel.h"
6
2
7
-
8
3
@implementation GDDModel {
9
4
10
5
}
Original file line number Diff line number Diff line change 1
- //
2
- // Created by Larry Tin on 16/9/30.
3
- //
4
-
5
1
#import < Foundation/Foundation.h>
6
2
#import " GDDListService.h"
7
3
Original file line number Diff line number Diff line change 1
- //
2
- // Created by Larry Tin on 16/9/30.
3
- //
4
-
5
1
#import < Foundation/Foundation.h>
6
2
7
3
@protocol GDDRpc
You can’t perform that action at this time.
0 commit comments