File: DBStoneBase.m

package info (click to toggle)
python-stone 3.3.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,956 kB
  • sloc: python: 21,786; objc: 498; sh: 29; makefile: 11
file content (35 lines) | stat: -rw-r--r-- 951 bytes parent folder | download | duplicates (2)
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
///
/// Copyright (c) 2016 Dropbox, Inc. All rights reserved.
///

#import "DBStoneBase.h"

@implementation DBRoute

- (instancetype)init:(NSString *)name
                 namespace_:(NSString *)namespace_
                 deprecated:(NSNumber *)deprecated
                 resultType:(Class<DBSerializable>)resultType
                  errorType:(Class<DBSerializable>)errorType
                      attrs:(NSDictionary<NSString *, NSString *> *)attrs
      dataStructSerialBlock:(id (^)(id))dataStructSerialBlock
    dataStructDeserialBlock:(id (^)(id))dataStructDeserialBlock {
  self = [self init];
  if (self != nil) {
    _name = name;
    _namespace_ = namespace_;
    _deprecated = deprecated;
    _resultType = resultType;
    _errorType = errorType;
    _attrs = attrs;
    _dataStructSerialBlock = dataStructSerialBlock;
    _dataStructDeserialBlock = dataStructDeserialBlock;
  }
  return self;
}

@end

@implementation DBNilObject

@end