Differences From Artifact [348fd1db0b]:
- File
src/MTXClient.m
— part of check-in
[17e299f073]
at
2020-10-03 21:56:23
on branch trunk
— Initial support for sync
Only sends the sync, does not do anything with the response yet. Handling the response will be implemented in the next several commits, piece by piece. (user: js, size: 10378) [annotate] [blame] [check-ins using]
To Artifact [00b0c5338a]:
- File src/MTXClient.m — part of check-in [6ab44895eb] at 2020-10-03 22:32:12 on branch trunk — Store next batch (user: js, size: 10675) [annotate] [blame] [check-ins using]
︙ | |||
214 215 216 217 218 219 220 221 222 223 224 225 226 227 | 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 | + + + + + + + + + + + + + + | if (statusCode != 200) { block([MTXSyncFailedException exceptionWithStatusCode: statusCode response: response client: self]); return; } OFString *nextBatch = response[@"next_batch"]; if (![nextBatch isKindOfClass: OFString.class]) { block([OFInvalidServerReplyException exception]); return; } @try { [_storage setNextBatch: nextBatch forDeviceID: _deviceID]; } @catch (id e) { block(e); return; } block(nil); }]; objc_autoreleasePoolPop(pool); } |
︙ |