Created classes for every work

pull/73/head
MillenniumEarl 2021-02-16 15:13:04 +01:00
parent 5caa3c28a8
commit 3380885bcb
5 changed files with 162 additions and 0 deletions

View File

@ -0,0 +1,31 @@
"use strict";
// Modules from files
import { AuthorI, AnimationI, RatingI } from "../../interfaces";
export default class Animation implements AnimationI {
//#region Properties
Censored: boolean;
Genre: string[];
Installation: string;
Language: string[];
Lenght: string;
Pages: string;
Resolution: string[];
Authors: AuthorI[];
Category: string;
Changelog: string[];
Cover: string;
ID: number;
LastThreadUpdate: Date;
Name: string;
Overview: string;
Prefixes: string[];
Rating: RatingI;
Tags: string[];
ThreadPublishingDate: Date;
Url: string;
//#endregion Properties
}

View File

@ -0,0 +1,30 @@
"use strict";
// Modules from files
import { AuthorI, AssetI, RatingI } from "../../interfaces";
export default class Asset implements AssetI {
//#region Properties
AssetLink: string;
AssociatedAssets: string[];
CompatibleSoftware: string;
IncludedAssets: string[];
OfficialLinks: string[];
SKU: string;
Authors: AuthorI[];
Category: string;
Changelog: string[];
Cover: string;
ID: number;
LastThreadUpdate: Date;
Name: string;
Overview: string;
Prefixes: string[];
Rating: RatingI;
Tags: string[];
ThreadPublishingDate: Date;
Url: string;
//#endregion Properties
}

View File

@ -0,0 +1,26 @@
"use strict";
// Modules from files
import { AuthorI, ComicI, RatingI } from "../../interfaces";
export default class Comic implements ComicI {
//#region Properties
Genre: string[];
Pages: string;
Resolution: string[];
Authors: AuthorI[];
Category: string;
Changelog: string[];
Cover: string;
ID: number;
LastThreadUpdate: Date;
Name: string;
Overview: string;
Prefixes: string[];
Rating: RatingI;
Tags: string[];
ThreadPublishingDate: Date;
Url: string;
//#endregion Properties
}

View File

@ -0,0 +1,31 @@
"use strict";
// Modules from files
import { AuthorI, GameI, RatingI } from "../../interfaces";
export default class Game implements GameI {
//#region Properties
Censored: boolean;
Genre: string[];
Installation: string;
Language: string[];
LastRelease: Date;
OS: string[];
Version: string;
Authors: AuthorI[];
Category: string;
Changelog: string[];
Cover: string;
ID: number;
LastThreadUpdate: Date;
Name: string;
Overview: string;
Prefixes: string[];
Rating: RatingI;
Tags: string[];
ThreadPublishingDate: Date;
Url: string;
//#endregion Properties
}

View File

@ -0,0 +1,44 @@
"use strict";
// Modules from files
import { AuthorI, RatingI, HandiworkI } from "../../interfaces";
/**
* It represents a generic work, be it a game, a comic, an animation or an asset.
*/
export default class HandiWork implements HandiworkI {
//#region Properties
AssetLink: string;
AssociatedAssets: string[];
Censored: boolean;
Changelog: string[];
CompatibleSoftware: string;
Genre: string[];
IncludedAssets: string[];
Installation: string;
Language: string[];
LastRelease: Date;
Lenght: string;
OfficialLinks: string[];
OS: string[];
Pages: string;
Password: string;
Resolution: string[];
SKU: string;
Version: string;
Authors: AuthorI[];
Category: string;
Cover: string;
ID: number;
LastThreadUpdate: Date;
Name: string;
Overview: string;
Prefixes: string[];
Rating: RatingI;
Tags: string[];
ThreadPublishingDate: Date;
Url: string;
//#endregion Properties
}