re base code
[sdc.git] / catalog-ui / src / app / models / category.ts
index e45100a..0d5c63b 100644 (file)
@@ -22,8 +22,7 @@
 
 
 
-export class ICategoryBase {
-
+export interface ICategoryBase {
     //server properties
     name:string;
     normalizedName:string;
@@ -34,32 +33,13 @@ export class ICategoryBase {
     filterTerms:string;
     isDisabled:boolean;
     filteredGroup:Array<IGroup>;
-
-    constructor(category?:ICategoryBase) {
-        if (category) {
-            this.name = category.name;
-            this.normalizedName = category.normalizedName;
-            this.icons = category.icons;
-            this.filterTerms = category.filterTerms;
-            this.isDisabled = category.isDisabled;
-            this.filteredGroup = category.filteredGroup;
-        }
-    }
 }
 
-export class IMainCategory extends ICategoryBase {
+export interface IMainCategory extends ICategoryBase {
     subcategories:Array<ISubCategory>;
-
-    constructor();
-    constructor(category?:IMainCategory) {
-        super(category);
-        if (category) {
-            this.subcategories = category.subcategories;
-        }
-    }
 }
 
-export class ISubCategory extends ICategoryBase {
+export interface ISubCategory extends ICategoryBase {
     groupings:Array<ICategoryBase>;
 }