All files / node-sdk/models/bxml/verbs StartTranscription.ts

100% Statements 8/8
50% Branches 1/2
100% Functions 3/3
100% Lines 6/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 4110x                                       10x                 3x             10x 3x   10x  
import { NestableVerb } from '../NestableVerb';
import { CustomParam } from './CustomParam';
 
export interface StartTranscriptionAttributes {
    name?: string;
    tracks?: string;
    transcriptionEventUrl?: string;
    transcriptionEventMethod?: string;
    username?: string;
    password?: string
    destination?: string;
    stabilized?: boolean;
}
 
/**
 * @export
 * @class StartTranscription
 * @extends {NestableVerb}
 * Represents a StartTranscription verb
 */
export class StartTranscription extends NestableVerb {
    attributes: StartTranscriptionAttributes;
 
    /**
     * Creates an instance of StartTranscription
     * @param {StartTranscriptionAttributes} attributes The attributes to add to the element
     * @param {CustomParam | CustomParam[]} customParams The custom params to add to the element
     */
    constructor(attributes?: StartTranscriptionAttributes, customParams?: CustomParam | CustomParam[]) {
        super('StartTranscription', undefined, attributes, customParams);
    }
 
    /**
     * Add a custom param or params to the StartTranscription
     * @param {CustomParam | CustomParam[]} customParams The custom param or params to add
     */
    addCustomParams(customParams: CustomParam | CustomParam[]): void {
        this.nestedVerbs = this.nestedVerbs.concat(customParams);
    }
}