created HttpRequest
This commit is contained in:
14
src/pcast/Channels.ts
Normal file
14
src/pcast/Channels.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import {HttpMethod} from '../net/http/HttpMethod';
|
||||
import type {HttpRequests} from '../net/http/HttpRequests';
|
||||
|
||||
export class Channels {
|
||||
private readonly _httpRequests: HttpRequests;
|
||||
|
||||
constructor(httpRequests: HttpRequests) {
|
||||
this._httpRequests = httpRequests;
|
||||
}
|
||||
|
||||
public async getChannels() {
|
||||
return this._httpRequests.request(HttpMethod.Get, '/channels');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user