Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame] | 1 | |
| 2 | import {NodeModel, NodeModelResponseInterface} from "./nodeModel"; |
| 3 | |
| 4 | export interface ServiceProxyModelResponseInterface extends NodeModelResponseInterface{ |
| 5 | sourceModelUuid: string; |
| 6 | sourceModelInvariant: string; |
| 7 | sourceModelName: string; |
| 8 | } |
| 9 | export class ServiceProxyModel extends NodeModel { |
| 10 | sourceModelUuid: string; |
| 11 | sourceModelInvariant: string; |
| 12 | sourceModelName: string; |
| 13 | |
| 14 | constructor(serviceProxyJson?: ServiceProxyModelResponseInterface) { |
| 15 | if (serviceProxyJson) { |
| 16 | super(serviceProxyJson); |
| 17 | this.sourceModelUuid = serviceProxyJson.sourceModelUuid; |
| 18 | this.sourceModelInvariant = serviceProxyJson.sourceModelInvariant; |
| 19 | this.sourceModelName = serviceProxyJson.sourceModelName; |
| 20 | } |
| 21 | } |
| 22 | } |