Skip to content

Commit 0a9f939

Browse files
authored
Rename request factory methods to concrete API methods (#202)
* fix naming; * refactor factory methods to concrete api methods * remove new constant * remove commented method * add nullability identifiers
1 parent b69dc2b commit 0a9f939

File tree

11 files changed

+194
-85
lines changed

11 files changed

+194
-85
lines changed

Leanplum-SDK/Classes/Features/Actions/LPActionManager.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ - (void)leanplum_application:(UIApplication *)application didRegisterForRemoteNo
8989

9090
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
9191
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
92-
id<LPRequesting> request = [reqFactory createPostForApiMethod:LP_METHOD_SET_DEVICE_ATTRIBUTES
93-
params:@{LP_PARAM_DEVICE_PUSH_TOKEN: formattedToken}];
92+
id<LPRequesting> request = [reqFactory
93+
setDeviceAttributesWithParams:@{LP_PARAM_DEVICE_PUSH_TOKEN: formattedToken}];
9494
[[LPRequestSender sharedInstance] sendRequest:request];
9595
}
9696
LP_END_TRY
@@ -342,7 +342,7 @@ - (void)sendUserNotificationSettingsIfChanged:(UIUserNotificationSettings *)noti
342342
LP_END_USER_CODE
343343
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
344344
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
345-
id<LPRequesting> request = [reqFactory createPostForApiMethod:LP_METHOD_SET_DEVICE_ATTRIBUTES params:params];
345+
id<LPRequesting> request = [reqFactory setDeviceAttributesWithParams:params];
346346
[[LPRequestSender sharedInstance] sendRequest:request];
347347
LP_BEGIN_USER_CODE
348348
}];

Leanplum-SDK/Classes/Features/Inbox/LPInbox.m

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,7 @@ - (void)read
191191
NSDictionary *params = @{LP_PARAM_INBOX_MESSAGE_ID: [self messageId]};
192192
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
193193
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
194-
id<LPRequesting> request = [reqFactory createPostForApiMethod:LP_METHOD_MARK_INBOX_MESSAGE_AS_READ
195-
params:params];
194+
id<LPRequesting> request = [reqFactory markNewsfeedMessageAsReadWithParams:params];
196195
[[LPRequestSender sharedInstance] sendRequest:request];
197196
LP_END_TRY
198197
}
@@ -372,8 +371,7 @@ - (void)removeMessageForId:(NSString *)messageId
372371
NSDictionary *params = @{LP_PARAM_INBOX_MESSAGE_ID:messageId};
373372
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
374373
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
375-
id<LPRequesting> request = [reqFactory createPostForApiMethod:LP_METHOD_DELETE_INBOX_MESSAGE
376-
params:params];
374+
id<LPRequesting> request = [reqFactory deleteNewsfeedMessageWithParams:params];
377375
[[LPRequestSender sharedInstance] sendRequest:request];
378376
LP_END_TRY
379377
}
@@ -420,7 +418,7 @@ - (void)downloadMessages
420418
LP_TRY
421419
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
422420
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
423-
id<LPRequesting> request = [reqFactory createPostForApiMethod:LP_METHOD_GET_INBOX_MESSAGES params:nil];
421+
id<LPRequesting> request = [reqFactory getNewsfeedMessagesWithParams:nil];
424422
[request onResponse:^(id<LPNetworkOperationProtocol> operation, NSDictionary *response) {
425423
LP_TRY
426424
NSDictionary *messagesDict = response[LP_KEY_INBOX_MESSAGES];

Leanplum-SDK/Classes/Features/Variables/LPVarCache.m

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -660,8 +660,7 @@ - (BOOL)sendContentIfChanged:(BOOL)variables actions:(BOOL)actions
660660
args[LP_PARAM_FILE_ATTRIBUTES] = [LPJSON stringFromJSON:limitedFileAttributes];
661661
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
662662
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
663-
id<LPRequesting> request = [reqFactory createPostForApiMethod:LP_METHOD_SET_VARS
664-
params:args];
663+
id<LPRequesting> request = [reqFactory setVarsWithParams:args];
665664
[[LPRequestSender sharedInstance] sendRequest:request];
666665
return YES;
667666
} @catch (NSException *e) {
@@ -716,8 +715,7 @@ - (void)maybeUploadNewFiles
716715
if (filenames.count > 0) {
717716
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
718717
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
719-
LeanplumRequest *req = [reqFactory createPostForApiMethod:LP_METHOD_UPLOAD_FILE
720-
params:@{LP_PARAM_DATA: [LPJSON stringFromJSON:fileData]}];
718+
LeanplumRequest *req = [reqFactory uploadFileWithParams:@{LP_PARAM_DATA: [LPJSON stringFromJSON:fileData]}];
721719
[req sendFilesNow:filenames];
722720
}
723721
}

Leanplum-SDK/Classes/Internal/Constants.h

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -160,33 +160,10 @@ OBJC_EXPORT NSString *LEANPLUM_DEFAULTS_UUID_KEY;
160160

161161
OBJC_EXPORT NSString *LEANPLUM_SQLITE_NAME;
162162

163-
OBJC_EXPORT NSString *LP_METHOD_START;
164163
OBJC_EXPORT NSString *LP_METHOD_GET_VARS;
165-
OBJC_EXPORT NSString *LP_METHOD_SET_VARS;
166-
OBJC_EXPORT NSString *LP_METHOD_STOP;
167-
OBJC_EXPORT NSString *LP_METHOD_PAUSE_SESSION;
168-
OBJC_EXPORT NSString *LP_METHOD_PAUSE_STATE;
169-
OBJC_EXPORT NSString *LP_METHOD_RESUME_SESSION;
170-
OBJC_EXPORT NSString *LP_METHOD_RESUME_STATE;
171-
OBJC_EXPORT NSString *LP_METHOD_TRACK;
172-
OBJC_EXPORT NSString *LP_METHOD_ADVANCE;
173-
OBJC_EXPORT NSString *LP_METHOD_PAUSE;
174-
OBJC_EXPORT NSString *LP_METHOD_RESUME;
175164
OBJC_EXPORT NSString *LP_METHOD_MULTI;
176-
OBJC_EXPORT NSString *LP_METHOD_REGISTER_FOR_DEVELOPMENT;
177-
OBJC_EXPORT NSString *LP_METHOD_SET_USER_ATTRIBUTES;
178-
OBJC_EXPORT NSString *LP_METHOD_SET_DEVICE_ATTRIBUTES;
179-
OBJC_EXPORT NSString *LP_METHOD_SET_TRAFFIC_SOURCE_INFO;
180165
OBJC_EXPORT NSString *LP_METHOD_UPLOAD_FILE;
181-
OBJC_EXPORT NSString *LP_METHOD_DOWNLOAD_FILE;
182-
OBJC_EXPORT NSString *LP_METHOD_HEARTBEAT;
183-
OBJC_EXPORT NSString *LP_METHOD_SAVE_VIEW_CONTROLLER_VERSION;
184-
OBJC_EXPORT NSString *LP_METHOD_SAVE_VIEW_CONTROLLER_IMAGE;
185-
OBJC_EXPORT NSString *LP_METHOD_GET_VIEW_CONTROLLER_VERSIONS_LIST;
186166
OBJC_EXPORT NSString *LP_METHOD_LOG;
187-
OBJC_EXPORT NSString *LP_METHOD_GET_INBOX_MESSAGES;
188-
OBJC_EXPORT NSString *LP_METHOD_MARK_INBOX_MESSAGE_AS_READ;
189-
OBJC_EXPORT NSString *LP_METHOD_DELETE_INBOX_MESSAGE;
190167

191168
OBJC_EXPORT NSString *LP_PARAM_ACTION;
192169
OBJC_EXPORT NSString *LP_PARAM_ACTION_DEFINITIONS;

Leanplum-SDK/Classes/Internal/Constants.m

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -96,32 +96,10 @@ - (id)init {
9696

9797
NSString *LEANPLUM_SQLITE_NAME = @"__leanplum.sqlite";
9898

99-
NSString *LP_METHOD_START = @"start";
10099
NSString *LP_METHOD_GET_VARS = @"getVars";
101-
NSString *LP_METHOD_SET_VARS = @"setVars";
102-
NSString *LP_METHOD_STOP = @"stop";
103-
NSString *LP_METHOD_RESTART = @"restart";
104-
NSString *LP_METHOD_TRACK = @"track";
105-
NSString *LP_METHOD_ADVANCE = @"advance";
106-
NSString *LP_METHOD_PAUSE_SESSION = @"pauseSession";
107-
NSString *LP_METHOD_PAUSE_STATE = @"pauseState";
108-
NSString *LP_METHOD_RESUME_SESSION = @"resumeSession";
109-
NSString *LP_METHOD_RESUME_STATE = @"resumeState";
110100
NSString *LP_METHOD_MULTI = @"multi";
111-
NSString *LP_METHOD_REGISTER_FOR_DEVELOPMENT = @"registerDevice";
112-
NSString *LP_METHOD_SET_USER_ATTRIBUTES = @"setUserAttributes";
113-
NSString *LP_METHOD_SET_DEVICE_ATTRIBUTES = @"setDeviceAttributes";
114-
NSString *LP_METHOD_SET_TRAFFIC_SOURCE_INFO = @"setTrafficSourceInfo";
115101
NSString *LP_METHOD_UPLOAD_FILE = @"uploadFile";
116-
NSString *LP_METHOD_DOWNLOAD_FILE = @"downloadFile";
117-
NSString *LP_METHOD_HEARTBEAT = @"heartbeat";
118-
NSString *LP_METHOD_SAVE_VIEW_CONTROLLER_VERSION = @"saveInterface";
119-
NSString *LP_METHOD_SAVE_VIEW_CONTROLLER_IMAGE = @"saveInterfaceImage";
120-
NSString *LP_METHOD_GET_VIEW_CONTROLLER_VERSIONS_LIST = @"getViewControllerVersionsList";
121102
NSString *LP_METHOD_LOG = @"log";
122-
NSString *LP_METHOD_GET_INBOX_MESSAGES = @"getNewsfeedMessages";
123-
NSString *LP_METHOD_MARK_INBOX_MESSAGE_AS_READ = @"markNewsfeedMessageAsRead";
124-
NSString *LP_METHOD_DELETE_INBOX_MESSAGE = @"deleteNewsfeedMessage";
125103

126104
NSString *LP_PARAM_ACTION = @"action";
127105
NSString *LP_PARAM_ACTION_DEFINITIONS = @"actionDefinitions";
@@ -319,8 +297,7 @@ void leanplumInternalError(NSException *e)
319297
@try {
320298
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
321299
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
322-
id<LPRequesting> request = [reqFactory createPostForApiMethod:LP_METHOD_LOG
323-
params:@{
300+
id<LPRequesting> request = [reqFactory logWithParams:@{
324301
LP_PARAM_TYPE: LP_VALUE_SDK_ERROR,
325302
LP_PARAM_MESSAGE: [e description],
326303
@"stackTrace": [[e callStackSymbols] description] ?: @"",

Leanplum-SDK/Classes/Internal/Leanplum.m

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ + (void)startWithUserId:(NSString *)userId
864864
// Issue start API call.
865865
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
866866
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
867-
id<LPRequesting> request = [reqFactory createPostForApiMethod:LP_METHOD_START params:params];
867+
id<LPRequesting> request = [reqFactory startWithParams:params];
868868
[request onResponse:^(id<LPNetworkOperationProtocol> operation, NSDictionary *response) {
869869
LP_TRY
870870
state.hasStarted = YES;
@@ -945,8 +945,7 @@ + (void)startWithUserId:(NSString *)userId
945945
if (arc4random() % 1000 == 0) {
946946
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
947947
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
948-
id<LPRequesting> request = [reqFactory createPostForApiMethod:LP_METHOD_LOG
949-
params:@{
948+
id<LPRequesting> request = [reqFactory logWithParams:@{
950949
LP_PARAM_TYPE: LP_VALUE_SDK_START_LATENCY,
951950
@"startLatency": [@(latency) description]
952951
}];
@@ -1044,7 +1043,7 @@ + (void)startWithUserId:(NSString *)userId
10441043
objectForKey:@"UIApplicationExitsOnSuspend"] boolValue];
10451044
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
10461045
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
1047-
id<LPRequesting> request = [reqFactory createPostForApiMethod:LP_METHOD_STOP params:nil];
1046+
id<LPRequesting> request = [reqFactory stopWithParams:nil];
10481047
[[LPRequestSender sharedInstance] sendIfConnected:request sync:exitOnSuspend];
10491048
LP_END_TRY
10501049
}];
@@ -1056,7 +1055,7 @@ + (void)startWithUserId:(NSString *)userId
10561055
if ([[UIApplication sharedApplication] applicationState] == UIApplicationStateActive) {
10571056
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
10581057
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
1059-
id<LPRequesting> request = [reqFactory createPostForApiMethod:LP_METHOD_HEARTBEAT params:nil];
1058+
id<LPRequesting> request = [reqFactory heartbeatWithParams:nil];
10601059
[[LPRequestSender sharedInstance] sendIfDelayed:request];
10611060

10621061
}
@@ -1153,7 +1152,7 @@ + (void)pause
11531152
// Send pause event.
11541153
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
11551154
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
1156-
id<LPRequesting> request = [reqFactory createPostForApiMethod:LP_METHOD_PAUSE_SESSION params:nil];
1155+
id<LPRequesting> request = [reqFactory pauseSessionWithParams:nil];
11571156
[request onResponse:^(id<LPNetworkOperationProtocol> operation, id json) {
11581157
finishTaskHandler();
11591158
}];
@@ -1167,7 +1166,7 @@ + (void)resume
11671166
{
11681167
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
11691168
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
1170-
id<LPRequesting> request = [reqFactory createPostForApiMethod:LP_METHOD_RESUME_SESSION params:nil];
1169+
id<LPRequesting> request = [reqFactory resumeSessionWithParams:nil];
11711170
[[LPRequestSender sharedInstance] sendIfDelayed:request];
11721171
}
11731172

@@ -1909,7 +1908,7 @@ + (void)trackInternal:(NSString *)event withArgs:(NSDictionary *)args
19091908
{
19101909
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
19111910
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
1912-
id<LPRequesting> request = [reqFactory createPostForApiMethod:LP_METHOD_TRACK params:args];
1911+
id<LPRequesting> request = [reqFactory trackWithParams:args];
19131912
[[LPRequestSender sharedInstance] sendRequest:request];
19141913

19151914
// Perform event actions.
@@ -2042,7 +2041,7 @@ + (void)setUserIdInternal:(NSString *)userId withAttributes:(NSDictionary *)attr
20422041

20432042
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
20442043
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
2045-
id<LPRequesting> request = [reqFactory createPostForApiMethod:LP_METHOD_SET_USER_ATTRIBUTES params:@{
2044+
id<LPRequesting> request = [reqFactory setUserAttributesWithParams:@{
20462045
LP_PARAM_USER_ATTRIBUTES: attributes ? [LPJSON stringFromJSON:attributes] : @"",
20472046
LP_PARAM_NEW_USER_ID: userId ? userId : @""
20482047
}];
@@ -2118,7 +2117,7 @@ + (void)setTrafficSourceInfoInternal:(NSDictionary *)info
21182117
{
21192118
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
21202119
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
2121-
id<LPRequesting> request = [reqFactory createPostForApiMethod:LP_METHOD_SET_TRAFFIC_SOURCE_INFO params:@{
2120+
id<LPRequesting> request = [reqFactory setTrafficSourceInfoWithParams:@{
21222121
LP_PARAM_TRAFFIC_SOURCE: info
21232122
}];
21242123
[[LPRequestSender sharedInstance] sendRequest:request];
@@ -2173,7 +2172,7 @@ + (void)advanceToInternal:(NSString *)state withArgs:(NSDictionary *)args
21732172
{
21742173
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
21752174
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
2176-
id<LPRequesting> request = [reqFactory createPostForApiMethod:LP_METHOD_ADVANCE params:args];
2175+
id<LPRequesting> request = [reqFactory advanceWithParams:args];
21772176
[[LPRequestSender sharedInstance] sendRequest:request];
21782177
LPContextualValues *contextualValues = [[LPContextualValues alloc] init];
21792178
contextualValues.parameters = params;
@@ -2202,7 +2201,7 @@ + (void)pauseStateInternal
22022201
{
22032202
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
22042203
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
2205-
id<LPRequesting> request = [reqFactory createPostForApiMethod:LP_METHOD_PAUSE_STATE params:@{}];
2204+
id<LPRequesting> request = [reqFactory pauseStateWithParams:@{}];
22062205
[[LPRequestSender sharedInstance] sendRequest:request];
22072206
}
22082207

@@ -2224,7 +2223,7 @@ + (void)resumeStateInternal
22242223
{
22252224
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
22262225
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
2227-
id<LPRequesting> request = [reqFactory createPostForApiMethod:LP_METHOD_RESUME_STATE params:@{}];
2226+
id<LPRequesting> request = [reqFactory resumeStateWithParams:@{}];
22282227
[[LPRequestSender sharedInstance] sendRequest:request];
22292228
}
22302229

@@ -2253,9 +2252,7 @@ + (void)forceContentUpdate:(LeanplumVariablesChangedBlock)block
22532252

22542253
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
22552254
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
2256-
id<LPRequesting> request = [reqFactory
2257-
createPostForApiMethod:LP_METHOD_GET_VARS
2258-
params:params];
2255+
id<LPRequesting> request = [reqFactory getVarsWithParams:params];
22592256
[request onResponse:^(id<LPNetworkOperationProtocol> operation, NSDictionary *response) {
22602257
LP_TRY
22612258
NSDictionary *values = response[LP_KEY_VARS];
@@ -2543,7 +2540,7 @@ + (void)maybeSendLog:(NSString *)message {
25432540
@try {
25442541
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
25452542
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
2546-
id<LPRequesting> request = [reqFactory createPostForApiMethod:LP_METHOD_LOG params:@{
2543+
id<LPRequesting> request = [reqFactory logWithParams:@{
25472544
LP_PARAM_TYPE: LP_VALUE_SDK_LOG,
25482545
LP_PARAM_MESSAGE: message
25492546
}];
@@ -2636,7 +2633,7 @@ + (void)setUserLocationAttributeWithLatitude:(double)latitude
26362633

26372634
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
26382635
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
2639-
id<LPRequesting> request = [reqFactory createPostForApiMethod:LP_METHOD_SET_USER_ATTRIBUTES params:params];
2636+
id<LPRequesting> request = [reqFactory setUserAttributesWithParams:params];
26402637
[request onResponse:^(id<LPNetworkOperationProtocol> operation, id json) {
26412638
if (response) {
26422639
response(YES);

Leanplum-SDK/Classes/Managers/LPAppIconManager.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ + (void)uploadAppIconsOnDevMode
6565
}];
6666
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
6767
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
68-
id<LPRequesting> request = [reqFactory createPostForApiMethod:LP_METHOD_UPLOAD_FILE
69-
params:@{@"data":
68+
id<LPRequesting> request = [reqFactory uploadFileWithParams:@{@"data":
7069
[LPJSON stringFromJSON:requestParam]}];
7170
[request onResponse:^(id<LPNetworkOperationProtocol> operation, id json) {
7271
LPLog(LPVerbose, @"App icons uploaded.");

Leanplum-SDK/Classes/Managers/LPFileManager.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ + (BOOL)maybeDownloadFile:(NSString *)value
569569
if ([self shouldDownloadFile:value defaultValue:defaultValue]) {
570570
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
571571
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
572-
LeanplumRequest *downloadRequest = [reqFactory createGetForApiMethod:LP_METHOD_DOWNLOAD_FILE params:nil];
572+
LeanplumRequest *downloadRequest = [reqFactory downloadFileWithParams:nil];
573573
[downloadRequest onResponse:^(id<LPNetworkOperationProtocol> operation, id json) {
574574
if (complete) {
575575
complete();

Leanplum-SDK/Classes/Managers/LPRegisterDevice.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ - (void)registerDevice:(NSString *)email
5454
{
5555
LPRequestFactory *reqFactory = [[LPRequestFactory alloc]
5656
initWithFeatureFlagManager:[LPFeatureFlagManager sharedManager]];
57-
id<LPRequesting> request = [reqFactory createPostForApiMethod:LP_METHOD_REGISTER_FOR_DEVELOPMENT
58-
params:@{ LP_PARAM_EMAIL: email }];
57+
id<LPRequesting> request = [reqFactory registerDeviceWithParams:@{ LP_PARAM_EMAIL: email }];
5958
[request onResponse:^(id<LPNetworkOperationProtocol> operation, NSDictionary *response) {
6059
LP_TRY
6160
BOOL isSuccess = [LPResponse isResponseSuccess:response];

0 commit comments

Comments
 (0)