summaryrefslogtreecommitdiff
path: root/iridescence/src/models
diff options
context:
space:
mode:
Diffstat (limited to 'iridescence/src/models')
-rw-r--r--iridescence/src/models/category.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/iridescence/src/models/category.js b/iridescence/src/models/category.js
new file mode 100644
index 0000000..689c98f
--- /dev/null
+++ b/iridescence/src/models/category.js
@@ -0,0 +1,13 @@
+export class Category {
+ name: string;
+ subcategory: Category;
+
+ /**
+ * @param {string} name
+ * @param {Category=} subcategory
+ */
+ constructor(name, subcategory) {
+ this.name = name;
+ this.subcategory = subcategory;
+ }
+}