blob: 31810ca72b0381464de3e3fe9dfca61fbdb406cf [file] [log] [blame]
Ittay Stern6f900cc2018-08-29 17:01:32 +03001
2import {NodeModel, NodeModelResponseInterface} from "./nodeModel";
3
4export interface ServiceProxyModelResponseInterface extends NodeModelResponseInterface{
5 sourceModelUuid: string;
6 sourceModelInvariant: string;
7 sourceModelName: string;
8}
9export 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}