Skip to content

Commit

Permalink
feat: add a base data object
Browse files Browse the repository at this point in the history
  • Loading branch information
thislooksfun committed Mar 12, 2021
1 parent 29f4876 commit 74637d8
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/objects/content.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
export interface ContentData {
created: number;
createdUtc: number;
id: string;
name: string;
}

export default class Content implements ContentData {
created: number;
createdUtc: number;
id: string;
name: string;

constructor(data: ContentData) {
this.created = data.created;
this.createdUtc = data.createdUtc;
this.id = data.id;
this.name = data.name;
}
}

0 comments on commit 74637d8

Please sign in to comment.