-
Notifications
You must be signed in to change notification settings - Fork 0
/
KalturaAssetPersonalSelectionService.js
43 lines (40 loc) · 1.37 KB
/
KalturaAssetPersonalSelectionService.js
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
41
42
43
/**
*Class definition for the Kaltura service: assetPersonalSelection.
**/
var KalturaAssetPersonalSelectionService = {
/**
* Remove asset selection in slot.
* @param assetId int asset id (optional)
* @param assetType string asset type: media/epg (optional, enum: KalturaAssetType)
* @param slotNumber int slot number (optional)
**/
deleteAction: function(assetId, assetType, slotNumber){
var kparams = new Object();
kparams.assetId = assetId;
kparams.assetType = assetType;
kparams.slotNumber = slotNumber;
return new KalturaRequestBuilder("assetpersonalselection", "delete", kparams);
},
/**
* Remove asset selection in slot.
* @param slotNumber int slot number (optional)
**/
deleteAll: function(slotNumber){
var kparams = new Object();
kparams.slotNumber = slotNumber;
return new KalturaRequestBuilder("assetpersonalselection", "deleteAll", kparams);
},
/**
* Add or update asset selection in slot.
* @param assetId int asset id (optional)
* @param assetType string asset type: media/epg (optional, enum: KalturaAssetType)
* @param slotNumber int slot number (optional)
**/
upsert: function(assetId, assetType, slotNumber){
var kparams = new Object();
kparams.assetId = assetId;
kparams.assetType = assetType;
kparams.slotNumber = slotNumber;
return new KalturaRequestBuilder("assetpersonalselection", "upsert", kparams);
}
}