-
Notifications
You must be signed in to change notification settings - Fork 0
/
KalturaAssetFilePpvService.js
51 lines (47 loc) · 1.56 KB
/
KalturaAssetFilePpvService.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
44
45
46
47
48
49
50
51
/**
*Class definition for the Kaltura service: assetFilePpv.
**/
var KalturaAssetFilePpvService = {
/**
* Add asset file ppv.
* @param assetFilePpv KalturaAssetFilePpv asset file ppv (optional)
**/
add: function(assetFilePpv){
var kparams = new Object();
kparams.assetFilePpv = assetFilePpv;
return new KalturaRequestBuilder("assetfileppv", "add", kparams);
},
/**
* Delete asset file ppv.
* @param assetFileId int Asset file id (optional)
* @param ppvModuleId int Ppv module id (optional)
**/
deleteAction: function(assetFileId, ppvModuleId){
var kparams = new Object();
kparams.assetFileId = assetFileId;
kparams.ppvModuleId = ppvModuleId;
return new KalturaRequestBuilder("assetfileppv", "delete", kparams);
},
/**
* Return a list of asset files ppvs for the account with optional filter.
* @param filter KalturaAssetFilePpvFilter Filter parameters for filtering out the result (optional)
**/
listAction: function(filter){
var kparams = new Object();
kparams.filter = filter;
return new KalturaRequestBuilder("assetfileppv", "list", kparams);
},
/**
* Update assetFilePpv.
* @param assetFileId int Asset file id (optional)
* @param ppvModuleId int Ppv module id (optional)
* @param assetFilePpv KalturaAssetFilePpv assetFilePpv (optional)
**/
update: function(assetFileId, ppvModuleId, assetFilePpv){
var kparams = new Object();
kparams.assetFileId = assetFileId;
kparams.ppvModuleId = ppvModuleId;
kparams.assetFilePpv = assetFilePpv;
return new KalturaRequestBuilder("assetfileppv", "update", kparams);
}
}