a bit of work on the message page
This commit is contained in:
@@ -182,6 +182,16 @@ class APIClient {
|
||||
);
|
||||
}
|
||||
|
||||
static Future<ChannelWithSubscription> getChannel(TokenSource auth, String cid) async {
|
||||
return await _request(
|
||||
name: 'getChannel',
|
||||
method: 'GET',
|
||||
relURL: 'users/${auth.getUserID()}/channels/${cid}',
|
||||
fn: ChannelWithSubscription.fromJson,
|
||||
authToken: auth.getToken(),
|
||||
);
|
||||
}
|
||||
|
||||
static Future<(String, List<Message>)> getMessageList(TokenSource auth, String pageToken, {int? pageSize, List<String>? channelIDs}) async {
|
||||
return await _request(
|
||||
name: 'getMessageList',
|
||||
|
@@ -1,6 +1,6 @@
|
||||
class APIException implements Exception {
|
||||
final int httpStatus;
|
||||
final String error;
|
||||
final int error;
|
||||
final String errHighlight;
|
||||
final String message;
|
||||
|
||||
|
Reference in New Issue
Block a user