Differences From Artifact [2463af8d3c]:
- File src/MTXClient.h — part of check-in [3c84d235e5] at 2020-10-03 19:47:26 on branch trunk — Add support for storage (user: js, size: 6089) [annotate] [blame] [check-ins using]
To Artifact [a9c991a2fb]:
- File
src/MTXClient.h
— 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: 6286) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
138 139 140 141 142 143 144 145 146 147 148 149 150 151 | - (instancetype)initWithUserID: (OFString *)userID deviceID: (OFString *)deviceID accessToken: (OFString *)accessToken homeserver: (OFURL *)homeserver storage: (id <MTXStorage>)storage OF_DESIGNATED_INITIALIZER; /** * @brief Logs out the device and invalidates the access token. * * @warning The client can no longer be used after this succeeded! * * @param block A block to call when logging out succeeded or failed */ | > > > > > > > > | 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | - (instancetype)initWithUserID: (OFString *)userID deviceID: (OFString *)deviceID accessToken: (OFString *)accessToken homeserver: (OFURL *)homeserver storage: (id <MTXStorage>)storage OF_DESIGNATED_INITIALIZER; /** * @brief Performs a sync. * * @param block A block to call when a sync was performed */ - (void)syncWithTimeout: (of_time_interval_t)timeout block: (mtx_client_response_block_t)block; /** * @brief Logs out the device and invalidates the access token. * * @warning The client can no longer be used after this succeeded! * * @param block A block to call when logging out succeeded or failed */ |
︙ | ︙ |