-
Notifications
You must be signed in to change notification settings - Fork 0
/
KalturaEngagementService.js
45 lines (41 loc) · 1.13 KB
/
KalturaEngagementService.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: engagement.
**/
var KalturaEngagementService = {
/**
* Insert new Engagement for partner.
* @param engagement KalturaEngagement Engagement adapter Object (optional)
**/
add: function(engagement){
var kparams = new Object();
kparams.engagement = engagement;
return new KalturaRequestBuilder("engagement", "add", kparams);
},
/**
* Delete engagement by engagement adapter id.
* @param id int Engagement identifier (optional)
**/
deleteAction: function(id){
var kparams = new Object();
kparams.id = id;
return new KalturaRequestBuilder("engagement", "delete", kparams);
},
/**
* Return engagement.
* @param id int Engagement identifier (optional)
**/
get: function(id){
var kparams = new Object();
kparams.id = id;
return new KalturaRequestBuilder("engagement", "get", kparams);
},
/**
* Returns all Engagement for partner.
* @param filter KalturaEngagementFilter filter (optional)
**/
listAction: function(filter){
var kparams = new Object();
kparams.filter = filter;
return new KalturaRequestBuilder("engagement", "list", kparams);
}
}