aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/models/serviceProxyModel.ts
blob: 31810ca72b0381464de3e3fe9dfca61fbdb406cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import {NodeModel, NodeModelResponseInterface} from "./nodeModel";

export interface ServiceProxyModelResponseInterface extends NodeModelResponseInterface{
  sourceModelUuid: string;
  sourceModelInvariant: string;
  sourceModelName: string;
}
export class ServiceProxyModel extends NodeModel {
  sourceModelUuid: string;
  sourceModelInvariant: string;
  sourceModelName: string;

  constructor(serviceProxyJson?: ServiceProxyModelResponseInterface)  {
    if (serviceProxyJson)  {
      super(serviceProxyJson);
      this.sourceModelUuid = serviceProxyJson.sourceModelUuid;
      this.sourceModelInvariant = serviceProxyJson.sourceModelInvariant;
      this.sourceModelName = serviceProxyJson.sourceModelName;
    }
  }
}