-
Notifications
You must be signed in to change notification settings - Fork 10
/
TransferRetry.ts
51 lines (44 loc) · 1.29 KB
/
TransferRetry.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 Status from './Status';
/**
* @export
* @class TransferRetry
*/
export class TransferRetry extends BitmovinResource {
/**
* The current status of the transfer-retry.
* @type {Status}
* @memberof TransferRetry
*/
public status?: Status;
/**
* Timestamp when the transfer-retry was started, returned as UTC expressed in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
* @type {Date}
* @memberof TransferRetry
*/
public startedAt?: Date;
/**
* Timestamp when the transfer-retry status changed to 'FINISHED', returned as UTC expressed in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
* @type {Date}
* @memberof TransferRetry
*/
public finishedAt?: Date;
/**
* Timestamp when the transfer-retry status changed to 'ERROR', returned as UTC expressed in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
* @type {Date}
* @memberof TransferRetry
*/
public errorAt?: Date;
constructor(obj?: Partial<TransferRetry>) {
super(obj);
if(!obj) {
return;
}
this.status = map(obj.status);
this.startedAt = map(obj.startedAt, Date);
this.finishedAt = map(obj.finishedAt, Date);
this.errorAt = map(obj.errorAt, Date);
}
}
export default TransferRetry;