aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/models/pnfModel.ts
blob: 8f9e0d1deaa65321e1361864ef50a5ea50949167 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import {
  Level1Model,
  Level1ModelProperties,
  Level1ModelResponseInterface
} from "./nodeModel";
import {VNFModelResponseInterface} from "./vnfModel";
import {Utils} from "../utils/utils";



export interface PnfProperties extends Level1ModelProperties{
  ecomp_generated_naming: string;
}

export interface PNFModelResponseInterface extends Level1ModelResponseInterface{
  properties: PnfProperties;
}

export class PNFModel extends Level1Model{
  roles: string[] = [];
  properties: PnfProperties;

  constructor(pnfJson?: PNFModelResponseInterface, flags?: { [key: string]: boolean }) {
    super(pnfJson);
    if (pnfJson && pnfJson.properties) {
      this.properties = pnfJson.properties;
      this.max = Utils.getMaxFirstLevel(this.properties, flags);
    }
  }

}