Add support for joining rooms

FossilOrigin-Name: b1d8afb546f8999f2c6aba10ca589d2b31ba5e0df917230e265abb5b11474f65
This commit is contained in:
Jonathan Schleifer 2020-10-03 17:40:47 +00:00
parent 1985cb9b46
commit 54f1802e89
8 changed files with 215 additions and 24 deletions

View file

@ -29,16 +29,17 @@ OF_ASSUME_NONNULL_BEGIN
@class MTXClient;
@interface MTXClientException: OFException
@property (readonly, nonatomic) MTXClient *client;
@property (readonly, nonatomic) int statusCode;
@property (readonly, nonatomic) mtx_response_t response;
@property (readonly, nonatomic) MTXClient *client;
+ (instancetype)exceptionWithClient: (MTXClient *)client
statusCode: (int)statusCode
response: (mtx_response_t)response;
- (instancetype)initWithClient: (OFString *)user
statusCode: (int)statusCode
response: (mtx_response_t)response;
+ (instancetype)exceptionWithStatusCode: (int)statusCode
response: (mtx_response_t)response
client: (MTXClient *)client;
- (instancetype)initWithStatusCode: (int)statusCode
response: (mtx_response_t)respons
client: (MTXClient *)client
OF_DESIGNATED_INITIALIZER;
@end
OF_ASSUME_NONNULL_END