aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/models/group-metadata.ts
blob: 1c137ac1be12055248e13a37d49f275afdeb2d68 (plain)
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
export class GroupMetadata {
    public name:string;
    public icon:string;
    public uniqueId: string;
    public type: string;
    public version: string;
    public description: string;
    public creationTime: number;
    public modificationTime: number;
    public highestVersion: boolean;
    public empty: boolean;

    deserialize (response): GroupMetadata {
        this.uniqueId = response.uniqueId;
        this.type = response.type;
        this.name = response.name;
        this.icon = response.icon;
        this.version = response.version;
        this.description = response.description;
        this.creationTime = response.creationTime;
        this.modificationTime = response.modificationTime;
        this.highestVersion = response.highestVersion;
        this.empty = response.empty;

        return this;
    }
}

export interface GroupTpes {
    groupTypes: Array<GroupMetadata>;
    excludeMapping: ExcludedGroupTypes;
}

export interface ExcludedGroupTypes {
    componentType: string;
    excludedGroupTypes: Array<string>;
}