Renamed interfaces

pull/73/head
MillenniumEarl 2021-02-20 18:23:54 +01:00
parent 1ff4e8d3dd
commit 209c3f0041
6 changed files with 28 additions and 28 deletions

View File

@ -1,7 +1,7 @@
"use strict"; "use strict";
// Modules from files // Modules from files
import { AuthorI, AnimationI, RatingI } from "../../interfaces"; import { IAuthor, AnimationI, IRating } from "../../interfaces";
export default class Animation implements AnimationI { export default class Animation implements AnimationI {
@ -13,7 +13,7 @@ export default class Animation implements AnimationI {
Lenght: string; Lenght: string;
Pages: string; Pages: string;
Resolution: string[]; Resolution: string[];
Authors: AuthorI[]; Authors: IAuthor[];
Category: string; Category: string;
Changelog: string[]; Changelog: string[];
Cover: string; Cover: string;
@ -22,7 +22,7 @@ export default class Animation implements AnimationI {
Name: string; Name: string;
Overview: string; Overview: string;
Prefixes: string[]; Prefixes: string[];
Rating: RatingI; Rating: IRating;
Tags: string[]; Tags: string[];
ThreadPublishingDate: Date; ThreadPublishingDate: Date;
Url: string; Url: string;

View File

@ -1,7 +1,7 @@
"use strict"; "use strict";
// Modules from files // Modules from files
import { AuthorI, AssetI, RatingI } from "../../interfaces"; import { IAuthor, AssetI, IRating } from "../../interfaces";
export default class Asset implements AssetI { export default class Asset implements AssetI {
@ -12,7 +12,7 @@ export default class Asset implements AssetI {
IncludedAssets: string[]; IncludedAssets: string[];
OfficialLinks: string[]; OfficialLinks: string[];
SKU: string; SKU: string;
Authors: AuthorI[]; Authors: IAuthor[];
Category: string; Category: string;
Changelog: string[]; Changelog: string[];
Cover: string; Cover: string;
@ -21,7 +21,7 @@ export default class Asset implements AssetI {
Name: string; Name: string;
Overview: string; Overview: string;
Prefixes: string[]; Prefixes: string[];
Rating: RatingI; Rating: IRating;
Tags: string[]; Tags: string[];
ThreadPublishingDate: Date; ThreadPublishingDate: Date;
Url: string; Url: string;

View File

@ -1,7 +1,7 @@
"use strict"; "use strict";
// Modules from files // Modules from files
import { AuthorI, ComicI, RatingI } from "../../interfaces"; import { IAuthor, ComicI, IRating } from "../../interfaces";
export default class Comic implements ComicI { export default class Comic implements ComicI {
@ -9,7 +9,7 @@ export default class Comic implements ComicI {
Genre: string[]; Genre: string[];
Pages: string; Pages: string;
Resolution: string[]; Resolution: string[];
Authors: AuthorI[]; Authors: IAuthor[];
Category: string; Category: string;
Changelog: string[]; Changelog: string[];
Cover: string; Cover: string;
@ -18,7 +18,7 @@ export default class Comic implements ComicI {
Name: string; Name: string;
Overview: string; Overview: string;
Prefixes: string[]; Prefixes: string[];
Rating: RatingI; Rating: IRating;
Tags: string[]; Tags: string[];
ThreadPublishingDate: Date; ThreadPublishingDate: Date;
Url: string; Url: string;

View File

@ -1,7 +1,7 @@
"use strict"; "use strict";
// Modules from files // Modules from files
import { AuthorI, GameI, RatingI } from "../../interfaces"; import { IAuthor, GameI, IRating } from "../../interfaces";
export default class Game implements GameI { export default class Game implements GameI {
@ -13,7 +13,7 @@ export default class Game implements GameI {
LastRelease: Date; LastRelease: Date;
OS: string[]; OS: string[];
Version: string; Version: string;
Authors: AuthorI[]; Authors: IAuthor[];
Category: string; Category: string;
Changelog: string[]; Changelog: string[];
Cover: string; Cover: string;
@ -22,7 +22,7 @@ export default class Game implements GameI {
Name: string; Name: string;
Overview: string; Overview: string;
Prefixes: string[]; Prefixes: string[];
Rating: RatingI; Rating: IRating;
Tags: string[]; Tags: string[];
ThreadPublishingDate: Date; ThreadPublishingDate: Date;
Url: string; Url: string;

View File

@ -1,12 +1,12 @@
"use strict"; "use strict";
// Modules from files // Modules from files
import { AuthorI, RatingI, HandiworkI } from "../../interfaces"; import { IAuthor, IRating, IHandiwork } from "../../interfaces";
/** /**
* It represents a generic work, be it a game, a comic, an animation or an asset. * It represents a generic work, be it a game, a comic, an animation or an asset.
*/ */
export default class HandiWork implements HandiworkI { export default class HandiWork implements IHandiwork {
//#region Properties //#region Properties
AssetLink: string; AssetLink: string;
@ -27,7 +27,7 @@ export default class HandiWork implements HandiworkI {
Resolution: string[]; Resolution: string[];
SKU: string; SKU: string;
Version: string; Version: string;
Authors: AuthorI[]; Authors: IAuthor[];
Category: string; Category: string;
Cover: string; Cover: string;
ID: number; ID: number;
@ -35,7 +35,7 @@ export default class HandiWork implements HandiworkI {
Name: string; Name: string;
Overview: string; Overview: string;
Prefixes: string[]; Prefixes: string[];
Rating: RatingI; Rating: IRating;
Tags: string[]; Tags: string[];
ThreadPublishingDate: Date; ThreadPublishingDate: Date;
Url: string; Url: string;

View File

@ -1,7 +1,7 @@
/** /**
* Data relating to an external platform (i.e. Patreon). * Data relating to an external platform (i.e. Patreon).
*/ */
export type ExternalPlatformI = { export type IExternalPlatform = {
/** /**
* Name of the platform. * Name of the platform.
*/ */
@ -15,7 +15,7 @@ export type ExternalPlatformI = {
/** /**
* Information about the author of a work. * Information about the author of a work.
*/ */
export type AuthorI = { export type IAuthor = {
/** /**
* Plain name or username of the author. * Plain name or username of the author.
*/ */
@ -23,13 +23,13 @@ export type AuthorI = {
/** /**
* *
*/ */
Platforms: ExternalPlatformI[], Platforms: IExternalPlatform[],
} }
/** /**
* Information on the evaluation of a work. * Information on the evaluation of a work.
*/ */
export type RatingI = { export type IRating = {
/** /**
* Average value of evaluations. * Average value of evaluations.
*/ */
@ -48,11 +48,11 @@ export type RatingI = {
* Collection of values defined for each * Collection of values defined for each
* handiwork on the F95Zone platform. * handiwork on the F95Zone platform.
*/ */
interface BasicI { interface IBasic {
/** /**
* Authors of the work. * Authors of the work.
*/ */
Authors: AuthorI[], Authors: IAuthor[],
/** /**
* Category of the work between `games`, `comics`, `animations`, `assets`. * Category of the work between `games`, `comics`, `animations`, `assets`.
*/ */
@ -88,7 +88,7 @@ interface BasicI {
/** /**
* Evaluation of the work by the users of the platform. * Evaluation of the work by the users of the platform.
*/ */
Rating: RatingI, Rating: IRating,
/** /**
* List of tags associated with the work. * List of tags associated with the work.
*/ */
@ -106,7 +106,7 @@ interface BasicI {
/** /**
* Collection of values representing a game present on the F95Zone platform. * Collection of values representing a game present on the F95Zone platform.
*/ */
export interface GameI extends BasicI { export interface GameI extends IBasic {
/** /**
* Specify whether the work has censorship * Specify whether the work has censorship
* measures regarding NSFW scenes * measures regarding NSFW scenes
@ -141,7 +141,7 @@ export interface GameI extends BasicI {
/** /**
* Collection of values representing a comic present on the F95Zone platform. * Collection of values representing a comic present on the F95Zone platform.
*/ */
export interface ComicI extends BasicI { export interface ComicI extends IBasic {
/** /**
* List of genres associated with the work. * List of genres associated with the work.
*/ */
@ -159,7 +159,7 @@ export interface ComicI extends BasicI {
/** /**
* Collection of values representing an animation present on the F95Zone platform. * Collection of values representing an animation present on the F95Zone platform.
*/ */
export interface AnimationI extends BasicI { export interface AnimationI extends IBasic {
/** /**
* Specify whether the work has censorship * Specify whether the work has censorship
* measures regarding NSFW scenes * measures regarding NSFW scenes
@ -194,7 +194,7 @@ export interface AnimationI extends BasicI {
/** /**
* Collection of values representing an asset present on the F95Zone platform. * Collection of values representing an asset present on the F95Zone platform.
*/ */
export interface AssetI extends BasicI { export interface AssetI extends IBasic {
/** /**
* External URL of the asset. * External URL of the asset.
*/ */
@ -226,4 +226,4 @@ export interface AssetI extends BasicI {
* Collection of values extrapolated from the * Collection of values extrapolated from the
* F95 platform representing a particular work. * F95 platform representing a particular work.
*/ */
export interface HandiworkI extends GameI, ComicI, AnimationI, AssetI {} export interface IHandiwork extends GameI, ComicI, AnimationI, AssetI { }