Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 1 | import { |
| 2 | Level1Model, |
| 3 | Level1ModelProperties, |
| 4 | Level1ModelResponseInterface |
| 5 | } from "./nodeModel"; |
| 6 | |
| 7 | |
| 8 | |
| 9 | export interface PnfProperties extends Level1ModelProperties{ |
| 10 | ecomp_generated_naming: string; |
| 11 | } |
| 12 | |
| 13 | export interface PNFModelResponseInterface extends Level1ModelResponseInterface{ |
| 14 | properties: PnfProperties; |
| 15 | } |
| 16 | |
| 17 | export class PNFModel extends Level1Model{ |
| 18 | roles: string[] = []; |
| 19 | properties: PnfProperties; |
| 20 | |
| 21 | constructor(pnfJson?: PNFModelResponseInterface) { |
| 22 | super(pnfJson); |
| 23 | if (pnfJson && pnfJson.properties) { |
| 24 | this.properties = pnfJson.properties; |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | } |