aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'ufund-ui/src/app/models')
-rw-r--r--ufund-ui/src/app/models/Need.ts13
-rw-r--r--ufund-ui/src/app/models/User.ts6
2 files changed, 19 insertions, 0 deletions
diff --git a/ufund-ui/src/app/models/Need.ts b/ufund-ui/src/app/models/Need.ts
new file mode 100644
index 0000000..607a6a7
--- /dev/null
+++ b/ufund-ui/src/app/models/Need.ts
@@ -0,0 +1,13 @@
+export interface Need {
+ name: string,
+ id: number,
+ filterAttributes: String[],
+ type: GoalType;
+ maxGoal: number;
+ current: number;
+}
+
+enum GoalType {
+ MONETARY,
+ PHYSICAL
+}
diff --git a/ufund-ui/src/app/models/User.ts b/ufund-ui/src/app/models/User.ts
new file mode 100644
index 0000000..46fe4a1
--- /dev/null
+++ b/ufund-ui/src/app/models/User.ts
@@ -0,0 +1,6 @@
+import {Need} from './Need';
+
+export interface User {
+ username: string;
+ cupboard: Need[];
+}