-
Notifications
You must be signed in to change notification settings - Fork 0
/
KalturaDeviceReferenceDataService.js
52 lines (48 loc) · 1.55 KB
/
KalturaDeviceReferenceDataService.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
/**
*Class definition for the Kaltura service: deviceReferenceData.
**/
var KalturaDeviceReferenceDataService = {
/**
* add DeviceReferenceData.
* @param objectToAdd KalturaDeviceReferenceData DeviceReferenceData details (optional)
**/
add: function(objectToAdd){
var kparams = new Object();
kparams.objectToAdd = objectToAdd;
return new KalturaRequestBuilder("devicereferencedata", "add", kparams);
},
/**
* Delete existing DeviceReferenceData.
* @param id int DeviceReferenceData identifier (optional)
**/
deleteAction: function(id){
var kparams = new Object();
kparams.id = id;
return new KalturaRequestBuilder("devicereferencedata", "delete", kparams);
},
/**
* Returns the list of available DeviceReferenceData.
* @param filter KalturaDeviceReferenceDataFilter 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("devicereferencedata", "list", kparams);
},
/**
* Update existing DeviceReferenceData.
* @param id int id of DeviceReferenceData to update (optional)
* @param objectToUpdate KalturaDeviceReferenceData DeviceReferenceData Object to update (optional)
**/
update: function(id, objectToUpdate){
var kparams = new Object();
kparams.id = id;
kparams.objectToUpdate = objectToUpdate;
return new KalturaRequestBuilder("devicereferencedata", "update", kparams);
}
}