-
Notifications
You must be signed in to change notification settings - Fork 0
/
KalturaDeviceFamilyService.js
45 lines (42 loc) · 1.38 KB
/
KalturaDeviceFamilyService.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
/**
*Class definition for the Kaltura service: deviceFamily.
**/
var KalturaDeviceFamilyService = {
/**
* Adds a new device family which belongs to a specific group..
* @param deviceFamily KalturaDeviceFamily Device family. (optional)
**/
add: function(deviceFamily){
var kparams = new Object();
kparams.deviceFamily = deviceFamily;
return new KalturaRequestBuilder("devicefamily", "add", kparams);
},
/**
* Return a list of the available device families..
* @param filter KalturaDeviceFamilyFilter Filter with no more than one condition specified. (optional, default: null)
* @param pager KalturaFilterPager Page size and index. (optional, default: null)
**/
listAction: function(filter, pager){
if(!filter)
filter = null;
if(!pager)
pager = null;
var kparams = new Object();
if (filter != null)
kparams.filter = filter;
if (pager != null)
kparams.pager = pager;
return new KalturaRequestBuilder("devicefamily", "list", kparams);
},
/**
* Updates an existing device family which belongs to a specific group..
* @param id int Device family's identifier. (optional)
* @param deviceFamily KalturaDeviceFamily Device family. (optional)
**/
update: function(id, deviceFamily){
var kparams = new Object();
kparams.id = id;
kparams.deviceFamily = deviceFamily;
return new KalturaRequestBuilder("devicefamily", "update", kparams);
}
}