1 import { HttpStatusCode } from '@shared/models'
2 import { unwrapBody, unwrapText } from '../requests'
3 import { AbstractCommand, OverrideCommandOptions } from '../shared'
5 export class StreamingPlaylistsCommand extends AbstractCommand {
7 get (options: OverrideCommandOptions & {
10 return unwrapText(this.getRawRequest({
15 defaultExpectedStatus: HttpStatusCode.OK_200
19 getSegment (options: OverrideCommandOptions & {
23 return unwrapBody<Buffer>(this.getRawRequest({
29 defaultExpectedStatus: HttpStatusCode.OK_200
33 getSegmentSha256 (options: OverrideCommandOptions & {
36 return unwrapBody<{ [ id: string ]: string }>(this.getRawRequest({
41 defaultExpectedStatus: HttpStatusCode.OK_200