Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 1 | export interface NodeModelResponseInterface { |
| 2 | name: string; |
| 3 | version: string; |
| 4 | description: string; |
| 5 | category: string; |
| 6 | uuid: string; |
| 7 | invariantUuid: string; |
| 8 | } |
| 9 | |
| 10 | export class NodeModel { |
| 11 | name: string; |
| 12 | version: string; |
| 13 | description: string; |
| 14 | category: string; |
| 15 | uuid: string; |
| 16 | invariantUuid: string; |
| 17 | |
| 18 | constructor(serviceJson?: NodeModelResponseInterface) { |
| 19 | if (serviceJson) { |
| 20 | this.name = serviceJson.name; |
| 21 | this.version = serviceJson.version; |
| 22 | this.description = serviceJson.description; |
| 23 | this.category = serviceJson.category; |
| 24 | this.uuid = serviceJson.uuid; |
| 25 | this.invariantUuid = serviceJson.invariantUuid; |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | } |