summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/models/properties-inputs/input-be-model.ts
blob: 72afd77038600d5ea6d92331b1e704a4b3e6b541 (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
32
import {PropertyBEModel} from 'app/models';
/**
 * Created by rc2122 on 6/1/2017.
 */
export class InputBEModel extends PropertyBEModel {

    inputPath: string;
    inputs: Array<ComponentInstanceModel>;
    instanceUniqueId: string;
    ownerId: string;
    propertyId: string;
    properties: Array<ComponentInstanceModel>;

    constructor(input?: InputBEModel) {
        super(input);
        this.instanceUniqueId = input.instanceUniqueId;
        this.propertyId = input.propertyId;
        this.properties = input.properties;
        this.inputs = input.inputs;
        this.ownerId = input.ownerId;
        this.inputPath = input.inputPath;
    }

    public toJSON = (): any => {
    };

}

export interface ComponentInstanceModel extends InputBEModel {
    componentInstanceId:string;
    componentInstanceName: string;
}