-
Notifications
You must be signed in to change notification settings - Fork 0
/
KalturaDynamicListService.js
67 lines (62 loc) · 2.08 KB
/
KalturaDynamicListService.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
*Class definition for the Kaltura service: dynamicList.
**/
var KalturaDynamicListService = {
/**
* Add new KalturaDynamicList.
* @param objectToAdd KalturaDynamicList KalturaDynamicList Object to add (optional)
**/
add: function(objectToAdd){
var kparams = new Object();
kparams.objectToAdd = objectToAdd;
return new KalturaRequestBuilder("dynamiclist", "add", kparams);
},
/**
* Add new bulk upload batch job Conversion profile id can be specified in the API..
* @param fileData HTMLElement fileData (optional)
* @param jobData KalturaBulkUploadExcelJobData jobData (optional)
* @param bulkUploadData KalturaBulkUploadDynamicListData bulkUploadData (optional)
**/
addFromBulkUpload: function(fileData, jobData, bulkUploadData){
var kparams = new Object();
var kfiles = new Object();
kfiles.fileData = fileData;
kparams.jobData = jobData;
kparams.bulkUploadData = bulkUploadData;
return new KalturaRequestBuilder("dynamiclist", "addFromBulkUpload", kparams, kfiles);
},
/**
* Delete existing DynamicList.
* @param id int DynamicList identifier (optional)
**/
deleteAction: function(id){
var kparams = new Object();
kparams.id = id;
return new KalturaRequestBuilder("dynamiclist", "delete", kparams);
},
/**
* Returns the list of available DynamicList.
* @param filter KalturaDynamicListFilter Filter (optional)
* @param pager KalturaFilterPager Pager (optional, default: null)
**/
listAction: function(filter, pager){
if(!pager)
pager = null;
var kparams = new Object();
kparams.filter = filter;
if (pager != null)
kparams.pager = pager;
return new KalturaRequestBuilder("dynamiclist", "list", kparams);
},
/**
* Update existing KalturaDynamicList.
* @param id int id of KalturaDynamicList to update (optional)
* @param objectToUpdate KalturaDynamicList KalturaDynamicList Object to update (optional)
**/
update: function(id, objectToUpdate){
var kparams = new Object();
kparams.id = id;
kparams.objectToUpdate = objectToUpdate;
return new KalturaRequestBuilder("dynamiclist", "update", kparams);
}
}