-
Notifications
You must be signed in to change notification settings - Fork 0
/
KalturaEngagementAdapterService.js
65 lines (59 loc) · 1.91 KB
/
KalturaEngagementAdapterService.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
/**
*Class definition for the Kaltura service: engagementAdapter.
**/
var KalturaEngagementAdapterService = {
/**
* Insert new Engagement adapter for partner.
* @param engagementAdapter KalturaEngagementAdapter Engagement adapter Object (optional)
**/
add: function(engagementAdapter){
var kparams = new Object();
kparams.engagementAdapter = engagementAdapter;
return new KalturaRequestBuilder("engagementadapter", "add", kparams);
},
/**
* Delete Engagement adapter by Engagement adapter id.
* @param id int Engagement adapter identifier (optional)
**/
deleteAction: function(id){
var kparams = new Object();
kparams.id = id;
return new KalturaRequestBuilder("engagementadapter", "delete", kparams);
},
/**
* Generate engagement adapter shared secret.
* @param id int Engagement adapter identifier (optional)
**/
generateSharedSecret: function(id){
var kparams = new Object();
kparams.id = id;
return new KalturaRequestBuilder("engagementadapter", "generateSharedSecret", kparams);
},
/**
* Returns all Engagement adapters for partner : id + name.
* @param id int Engagement adapter identifier (optional)
**/
get: function(id){
var kparams = new Object();
kparams.id = id;
return new KalturaRequestBuilder("engagementadapter", "get", kparams);
},
/**
* Returns all Engagement adapters for partner : id + name.
**/
listAction: function(){
var kparams = new Object();
return new KalturaRequestBuilder("engagementadapter", "list", kparams);
},
/**
* Update Engagement adapter details.
* @param id int Engagement adapter identifier (optional)
* @param engagementAdapter KalturaEngagementAdapter Engagement adapter Object (optional)
**/
update: function(id, engagementAdapter){
var kparams = new Object();
kparams.id = id;
kparams.engagementAdapter = engagementAdapter;
return new KalturaRequestBuilder("engagementadapter", "update", kparams);
}
}