Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 1 | export class GroupMetadata { |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 2 | public name:string; |
| 3 | public icon:string; |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 4 | public uniqueId: string; |
| 5 | public type: string; |
| 6 | public version: string; |
| 7 | public description: string; |
| 8 | public creationTime: number; |
| 9 | public modificationTime: number; |
| 10 | public highestVersion: boolean; |
| 11 | public empty: boolean; |
| 12 | |
| 13 | deserialize (response): GroupMetadata { |
| 14 | this.uniqueId = response.uniqueId; |
| 15 | this.type = response.type; |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 16 | this.name = response.name; |
| 17 | this.icon = response.icon; |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 18 | this.version = response.version; |
| 19 | this.description = response.description; |
| 20 | this.creationTime = response.creationTime; |
| 21 | this.modificationTime = response.modificationTime; |
| 22 | this.highestVersion = response.highestVersion; |
| 23 | this.empty = response.empty; |
| 24 | |
| 25 | return this; |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | export interface GroupTpes { |
| 30 | groupTypes: Array<GroupMetadata>; |
| 31 | excludeMapping: ExcludedGroupTypes; |
| 32 | } |
| 33 | |
| 34 | export interface ExcludedGroupTypes { |
| 35 | componentType: string; |
| 36 | excludedGroupTypes: Array<string>; |
| 37 | } |