mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-22 22:18:14 +00:00
27 lines
759 B
TypeScript
27 lines
759 B
TypeScript
import { YTNode } from '../../helpers.js';
|
|
import type { GetKidsBlocklistPickerRequest, IEndpoint, RawNode } from '../../index.js';
|
|
|
|
export default class GetKidsBlocklistPickerCommand extends YTNode implements IEndpoint<GetKidsBlocklistPickerRequest> {
|
|
static type = 'GetKidsBlocklistPickerCommand';
|
|
|
|
#API_PATH = 'kids/get_kids_blocklist_picker';
|
|
#data: RawNode;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.#data = data;
|
|
}
|
|
|
|
public getApiPath(): string {
|
|
return this.#API_PATH;
|
|
}
|
|
|
|
public buildRequest(): GetKidsBlocklistPickerRequest {
|
|
const request: GetKidsBlocklistPickerRequest = {};
|
|
|
|
if (this.#data.blockedForKidsContent)
|
|
request.blockedForKidsContent = this.#data.blockedForKidsContent;
|
|
|
|
return request;
|
|
}
|
|
} |