-
Notifications
You must be signed in to change notification settings - Fork 10
/
WatchFolder.ts
51 lines (44 loc) · 1.2 KB
/
WatchFolder.ts
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
import {map, mapArray} from '../common/Mapper';
import BitmovinResource from './BitmovinResource';
import WatchFolderInput from './WatchFolderInput';
import WatchFolderOutput from './WatchFolderOutput';
import WatchFolderStatus from './WatchFolderStatus';
/**
* @export
* @class WatchFolder
*/
export class WatchFolder extends BitmovinResource {
/**
* @type {WatchFolderInput}
* @memberof WatchFolder
*/
public input?: WatchFolderInput;
/**
* @type {WatchFolderOutput[]}
* @memberof WatchFolder
*/
public outputs?: WatchFolderOutput[];
/**
* The current status of the Watch Folder. The default value is `STOPPED` (required)
* @type {WatchFolderStatus}
* @memberof WatchFolder
*/
public status?: WatchFolderStatus;
/**
* A description text of the current status (required)
* @type {string}
* @memberof WatchFolder
*/
public statusText?: string;
constructor(obj?: Partial<WatchFolder>) {
super(obj);
if(!obj) {
return;
}
this.input = map(obj.input, WatchFolderInput);
this.outputs = mapArray(obj.outputs, WatchFolderOutput);
this.status = map(obj.status);
this.statusText = map(obj.statusText);
}
}
export default WatchFolder;