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
|