-
Notifications
You must be signed in to change notification settings - Fork 10
/
SpriteRepresentation.ts
58 lines (50 loc) · 1.42 KB
/
SpriteRepresentation.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
51
52
53
54
55
56
57
import {map, mapArray} from '../common/Mapper';
import DashRepresentation from './DashRepresentation';
import DashRepresentationTypeDiscriminator from './DashRepresentationTypeDiscriminator';
/**
* @export
* @class SpriteRepresentation
*/
export class SpriteRepresentation extends DashRepresentation {
/**
* Discriminator property for DashRepresentation
* @type {string}
* @memberof SpriteRepresentation
*/
public readonly typeDiscriminator: DashRepresentationTypeDiscriminator = DashRepresentationTypeDiscriminator.SPRITE;
/**
* UUID of an encoding (required)
* @type {string}
* @memberof SpriteRepresentation
*/
public encodingId?: string;
/**
* UUID of a stream (required)
* @type {string}
* @memberof SpriteRepresentation
*/
public streamId?: string;
/**
* UUID of a Sprite (required)
* @type {string}
* @memberof SpriteRepresentation
*/
public spriteId?: string;
/**
* Path to sprite segments. Will be used as the representation id in the manifest. (required)
* @type {string}
* @memberof SpriteRepresentation
*/
public segmentPath?: string;
constructor(obj?: Partial<SpriteRepresentation>) {
super(obj);
if(!obj) {
return;
}
this.encodingId = map(obj.encodingId);
this.streamId = map(obj.streamId);
this.spriteId = map(obj.spriteId);
this.segmentPath = map(obj.segmentPath);
}
}
export default SpriteRepresentation;