aboutsummaryrefslogtreecommitdiff
path: root/src/models/bucket.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/models/bucket.ts')
-rw-r--r--src/models/bucket.ts32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/models/bucket.ts b/src/models/bucket.ts
new file mode 100644
index 0000000..a9419a6
--- /dev/null
+++ b/src/models/bucket.ts
@@ -0,0 +1,32 @@
+import {SoftPairBucket} from "@/api/models/soft-pair-bucket.ts"
+
+export class SoftPairBucketClass implements SoftPairBucket {
+ readonly id: string;
+ readonly uri: string;
+ readonly category: any | null;
+ readonly contents: any;
+ readonly eligibility: any;
+ readonly missingQuestions: any | null;
+ readonly loi: any;
+ readonly payout: any;
+
+ constructor(data: {
+ id: string,
+ uri: string,
+ category: any | null,
+ contents: any,
+ eligibility: any,
+ missingQuestions: any | null,
+ loi: any,
+ payout: any
+ }) {
+ this.id = data.id;
+ this.uri = data.uri;
+ this.category = data.category;
+ this.contents = data.contents;
+ this.eligibility = data.eligibility;
+ this.missingQuestions = data.missingQuestions;
+ this.loi = data.loi;
+ this.payout = data.payout;
+ }
+} \ No newline at end of file