Skip to content

Commit

Permalink
feat: add service XInternal action XAddBulkDownload
Browse files Browse the repository at this point in the history
  • Loading branch information
eransakal committed Jul 13, 2017
1 parent 9586f96 commit 59b0ac6
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions src/types/XInternalXAddBulkDownloadAction.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@

import { KalturaObjectMetadata } from '../kaltura-object-base';


import { KalturaRequest, KalturaRequestArgs } from '../kaltura-request';

export interface XInternalXAddBulkDownloadActionArgs extends KalturaRequestArgs {
entryIds : string;
flavorParamsId? : string;
}

/**
* Creates new download job for multiple entry ids (comma separated), an email will
* be sent when the job is done This sevice support the following entries: -
* MediaEntry - Video will be converted using the flavor params id - Audio will
* be downloaded as MP3 - Image will be downloaded as Jpeg - MixEntry will be
* flattened using the flavor params id - Other entry types are not supported
* Returns the admin email that the email message will be sent to
**/
export class XInternalXAddBulkDownloadAction extends KalturaRequest<string> {

entryIds : string;
flavorParamsId : string;

constructor(data : XInternalXAddBulkDownloadActionArgs)
{
super(data, {responseType : 's', responseSubType : '', responseConstructor : null });
}

protected _getMetadata() : KalturaObjectMetadata
{
const result = super._getMetadata();
Object.assign(
result.properties,
{
service : { type : 'c', default : 'xinternal' },
action : { type : 'c', default : 'xAddBulkDownload' },
entryIds : { type : 's' },
flavorParamsId : { type : 's' }
}
);
return result;
}
}

0 comments on commit 59b0ac6

Please sign in to comment.