-
Notifications
You must be signed in to change notification settings - Fork 0
/
KalturaCategoryItemService.js
55 lines (51 loc) · 1.45 KB
/
KalturaCategoryItemService.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
/**
*Class definition for the Kaltura service: categoryItem.
**/
var KalturaCategoryItemService = {
/**
* categoryItem add.
* @param objectToAdd KalturaCategoryItem categoryItem details (optional)
**/
add: function(objectToAdd){
var kparams = new Object();
kparams.objectToAdd = objectToAdd;
return new KalturaRequestBuilder("categoryitem", "add", kparams);
},
/**
* Remove category.
* @param id int Category identifier (optional)
**/
deleteAction: function(id){
var kparams = new Object();
kparams.id = id;
return new KalturaRequestBuilder("categoryitem", "delete", kparams);
},
/**
* Gets all categoryItem items.
* @param filter KalturaCategoryItemFilter Filter (optional, default: null)
* @param pager KalturaFilterPager Pager (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("categoryitem", "list", kparams);
},
/**
* categoryItem update.
* @param id int Category identifier (optional)
* @param objectToUpdate KalturaCategoryItem categoryItem details (optional)
**/
update: function(id, objectToUpdate){
var kparams = new Object();
kparams.id = id;
kparams.objectToUpdate = objectToUpdate;
return new KalturaRequestBuilder("categoryitem", "update", kparams);
}
}