channel_view page

This commit is contained in:
2024-06-25 20:49:40 +02:00
parent e2dbe8866d
commit 2b23404461
7 changed files with 367 additions and 177 deletions

View File

@@ -247,6 +247,16 @@ class APIClient {
);
}
static Future<List<Subscription>> getChannelSubscriptions(TokenSource auth, String cid) async {
return await _request(
name: 'getChannelSubscriptions',
method: 'GET',
relURL: 'users/${auth.getUserID()}/channels/${cid}/subscriptions',
fn: (json) => Subscription.fromJsonArray(json['subscriptions'] as List<dynamic>),
authToken: auth.getToken(),
);
}
static Future<List<Client>> getClientList(TokenSource auth) async {
return await _request(
name: 'getClientList',