File tree Expand file tree Collapse file tree 2 files changed +21
-11
lines changed
Source/ObjectiveDropboxOfficial/Shared/Handwritten/Networking Expand file tree Collapse file tree 2 files changed +21
-11
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,18 @@ NS_ASSUME_NONNULL_BEGIN
4040// /
4141- (instancetype )init ;
4242
43+ // /
44+ // / Constructor that takes in a set of custom hostnames to use for api calls.
45+ // /
46+ // / @param meta the hostname to metaserver
47+ // / @param api the hostname to api server
48+ // / @param content the hostname to content server
49+ // / @param notify the hostname to notify server
50+ // /
51+ // / @return An initialized instance with the provided hostname configuration
52+ // /
53+ - (instancetype )initWithMeta : (NSString *)meta api : (NSString *)api content : (NSString *)content notify : (NSString *)notify ;
54+
4355// /
4456// / Constructor that takes in a set of custom hostnames to use for api calls.
4557// /
@@ -51,7 +63,7 @@ NS_ASSUME_NONNULL_BEGIN
5163// /
5264// / @return An initialized instance with the provided hostname configuration
5365// /
54- - (instancetype )initWithMeta : (NSString *)meta api : (NSString *)api content : (NSString *)content downloadContent : (NSString *)downloadContent notify : (NSString *)notify ;
66+ - (instancetype )initWithMeta : (NSString *)meta api : (NSString *)api content : (NSString *)content downloadContent : (NSString *)downloadContent notify : (NSString *)notify NS_DESIGNATED_INITIALIZER ;
5567
5668// /
5769// / Returns the prefix to use for API calls to the given route type.
Original file line number Diff line number Diff line change @@ -37,23 +37,21 @@ - (instancetype)initWithMeta:(NSString *)meta
3737 api : (NSString *)api
3838 content : (NSString *)content
3939 notify : (NSString *)notify {
40- if (self = [super init ]) {
41- _meta = meta;
42- _api = api;
43- _content = content;
44- _downloadContent = content;
45- _notify = notify;
46- }
47- return self;
40+ return [self initWithMeta: meta api: api content: content downloadContent: content notify: notify];
4841}
4942
5043- (instancetype )initWithMeta : (NSString *)meta
5144 api : (NSString *)api
5245 content : (NSString *)content
5346 downloadContent : (NSString *)downloadContent
5447 notify : (NSString *)notify {
55- self = [self initWithMeta: meta api: api content: content notify: notify];
56- _downloadContent = downloadContent;
48+ if (self = [super init ]) {
49+ _meta = meta;
50+ _api = api;
51+ _content = content;
52+ _downloadContent = downloadContent;
53+ _notify = notify;
54+ }
5755 return self;
5856}
5957
You can’t perform that action at this time.
0 commit comments