summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/models/collectionResourceModel.ts
diff options
context:
space:
mode:
Diffstat (limited to 'vid-webpack-master/src/app/shared/models/collectionResourceModel.ts')
-rw-r--r--vid-webpack-master/src/app/shared/models/collectionResourceModel.ts28
1 files changed, 28 insertions, 0 deletions
diff --git a/vid-webpack-master/src/app/shared/models/collectionResourceModel.ts b/vid-webpack-master/src/app/shared/models/collectionResourceModel.ts
new file mode 100644
index 000000000..259e18633
--- /dev/null
+++ b/vid-webpack-master/src/app/shared/models/collectionResourceModel.ts
@@ -0,0 +1,28 @@
+import {Level1Model, Level1ModelProperties, Level1ModelResponseInterface} from "./nodeModel";
+import {NcfModelInterface} from "./ncfModel";
+
+export interface CollectionResourceProperties extends Level1ModelProperties{
+}
+
+export interface CollectionResourceModelResponseInterface extends Level1ModelResponseInterface{
+ properties: CollectionResourceProperties;
+ networksCollection: { [key: string]: NcfModelInterface };
+}
+
+export class CollectionResourceModel extends Level1Model{
+
+ roles: string[] = [];
+ properties: CollectionResourceProperties;
+ networksCollection: { [key: string]: NcfModelInterface };
+
+ constructor(collectionResourceJson?: CollectionResourceModelResponseInterface){
+ super(collectionResourceJson);
+ if(collectionResourceJson && collectionResourceJson.properties){
+ this.properties = collectionResourceJson.properties;
+ }
+ if (collectionResourceJson && collectionResourceJson.networksCollection) {
+ this.networksCollection = collectionResourceJson.networksCollection;
+ }
+ }
+
+}