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