From 8caa77413ea372e5cbd2980a9922d701af359c04 Mon Sep 17 00:00:00 2001 From: Max Nanis Date: Wed, 28 May 2025 04:41:37 +0100 Subject: initial commit --- src/models/bucket.ts | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/models/bucket.ts (limited to 'src/models/bucket.ts') 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 -- cgit v1.2.3