-
Notifications
You must be signed in to change notification settings - Fork 0
/
KalturaCDVRAdapterProfileService.js
55 lines (50 loc) · 1.58 KB
/
KalturaCDVRAdapterProfileService.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: cDVRAdapterProfile.
**/
var KalturaCDVRAdapterProfileService = {
/**
* Insert new C-DVR adapter for partner.
* @param adapter KalturaCDVRAdapterProfile C-DVR adapter object (optional)
**/
add: function(adapter){
var kparams = new Object();
kparams.adapter = adapter;
return new KalturaRequestBuilder("cdvradapterprofile", "add", kparams);
},
/**
* Delete C-DVR adapter by C-DVR adapter id.
* @param adapterId int C-DVR adapter identifier (optional)
**/
deleteAction: function(adapterId){
var kparams = new Object();
kparams.adapterId = adapterId;
return new KalturaRequestBuilder("cdvradapterprofile", "delete", kparams);
},
/**
* Generate C-DVR adapter shared secret.
* @param adapterId int C-DVR adapter identifier (optional)
**/
generateSharedSecret: function(adapterId){
var kparams = new Object();
kparams.adapterId = adapterId;
return new KalturaRequestBuilder("cdvradapterprofile", "generateSharedSecret", kparams);
},
/**
* Returns all C-DVR adapters for partner.
**/
listAction: function(){
var kparams = new Object();
return new KalturaRequestBuilder("cdvradapterprofile", "list", kparams);
},
/**
* Update C-DVR adapter details.
* @param adapterId int C-DVR adapter identifier (optional)
* @param adapter KalturaCDVRAdapterProfile C-DVR adapter Object (optional)
**/
update: function(adapterId, adapter){
var kparams = new Object();
kparams.adapterId = adapterId;
kparams.adapter = adapter;
return new KalturaRequestBuilder("cdvradapterprofile", "update", kparams);
}
}