-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto-generated by Jenkins job OTT-Generate-ClientLibs/928, branch BEO…
…-12268
- Loading branch information
Backend CI
committed
Jul 17, 2022
1 parent
c1abb5c
commit 3997786
Showing
6 changed files
with
61 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
import { KalturaObjectMetadata } from '../kaltura-object-base'; | ||
|
||
|
||
import { KalturaAssetType } from './KalturaAssetType'; | ||
import { KalturaRequest, KalturaRequestArgs } from '../kaltura-request'; | ||
|
||
export interface StreamingDeviceBookPlaybackSessionActionArgs extends KalturaRequestArgs { | ||
mediaFileId : string; | ||
assetId : string; | ||
assetType : KalturaAssetType; | ||
} | ||
|
||
/** | ||
* Build request payload for service 'streamingDevice' action 'bookPlaybackSession'. | ||
* | ||
* Usage: Reserves a concurrency slot for the given asset-device combination | ||
* | ||
* Server response type: boolean | ||
* Server failure response type: KalturaAPIException | ||
* @class | ||
* @extends KalturaRequest | ||
*/ | ||
export class StreamingDeviceBookPlaybackSessionAction extends KalturaRequest<boolean> { | ||
|
||
mediaFileId : string; | ||
assetId : string; | ||
assetType : KalturaAssetType; | ||
|
||
constructor(data : StreamingDeviceBookPlaybackSessionActionArgs) | ||
{ | ||
super(data, {responseType : 'b', responseSubType : '', responseConstructor : null }); | ||
} | ||
|
||
protected _getMetadata() : KalturaObjectMetadata | ||
{ | ||
const result = super._getMetadata(); | ||
Object.assign( | ||
result.properties, | ||
{ | ||
service : { type : 'c', default : 'streamingdevice' }, | ||
action : { type : 'c', default : 'bookPlaybackSession' }, | ||
mediaFileId : { type : 's' }, | ||
assetId : { type : 's' }, | ||
assetType : { type : 'es', subTypeConstructor : KalturaAssetType, subType : 'KalturaAssetType' } | ||
} | ||
); | ||
return result; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters