Renamed interfaces
							parent
							
								
									1ff4e8d3dd
								
							
						
					
					
						commit
						209c3f0041
					
				| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
"use strict";
 | 
			
		||||
 | 
			
		||||
// Modules from files
 | 
			
		||||
import { AuthorI, AnimationI, RatingI } from "../../interfaces";
 | 
			
		||||
import { IAuthor, AnimationI, IRating } from "../../interfaces";
 | 
			
		||||
 | 
			
		||||
export default class Animation implements AnimationI {
 | 
			
		||||
    
 | 
			
		||||
| 
						 | 
				
			
			@ -13,7 +13,7 @@ export default class Animation implements AnimationI {
 | 
			
		|||
    Lenght: string;
 | 
			
		||||
    Pages: string;
 | 
			
		||||
    Resolution: string[];
 | 
			
		||||
    Authors: AuthorI[];
 | 
			
		||||
    Authors: IAuthor[];
 | 
			
		||||
    Category: string;
 | 
			
		||||
    Changelog: string[];
 | 
			
		||||
    Cover: string;
 | 
			
		||||
| 
						 | 
				
			
			@ -22,7 +22,7 @@ export default class Animation implements AnimationI {
 | 
			
		|||
    Name: string;
 | 
			
		||||
    Overview: string;
 | 
			
		||||
    Prefixes: string[];
 | 
			
		||||
    Rating: RatingI;
 | 
			
		||||
    Rating: IRating;
 | 
			
		||||
    Tags: string[];
 | 
			
		||||
    ThreadPublishingDate: Date;
 | 
			
		||||
    Url: string;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
"use strict";
 | 
			
		||||
 | 
			
		||||
// Modules from files
 | 
			
		||||
import { AuthorI, AssetI, RatingI } from "../../interfaces";
 | 
			
		||||
import { IAuthor, AssetI, IRating } from "../../interfaces";
 | 
			
		||||
 | 
			
		||||
export default class Asset implements AssetI {
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -12,7 +12,7 @@ export default class Asset implements AssetI {
 | 
			
		|||
    IncludedAssets: string[];
 | 
			
		||||
    OfficialLinks: string[];
 | 
			
		||||
    SKU: string;
 | 
			
		||||
    Authors: AuthorI[];
 | 
			
		||||
    Authors: IAuthor[];
 | 
			
		||||
    Category: string;
 | 
			
		||||
    Changelog: string[];
 | 
			
		||||
    Cover: string;
 | 
			
		||||
| 
						 | 
				
			
			@ -21,7 +21,7 @@ export default class Asset implements AssetI {
 | 
			
		|||
    Name: string;
 | 
			
		||||
    Overview: string;
 | 
			
		||||
    Prefixes: string[];
 | 
			
		||||
    Rating: RatingI;
 | 
			
		||||
    Rating: IRating;
 | 
			
		||||
    Tags: string[];
 | 
			
		||||
    ThreadPublishingDate: Date;
 | 
			
		||||
    Url: string;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
"use strict";
 | 
			
		||||
 | 
			
		||||
// Modules from files
 | 
			
		||||
import { AuthorI, ComicI, RatingI } from "../../interfaces";
 | 
			
		||||
import { IAuthor, ComicI, IRating } from "../../interfaces";
 | 
			
		||||
 | 
			
		||||
export default class Comic implements ComicI {
 | 
			
		||||
    
 | 
			
		||||
| 
						 | 
				
			
			@ -9,7 +9,7 @@ export default class Comic implements ComicI {
 | 
			
		|||
    Genre: string[];
 | 
			
		||||
    Pages: string;
 | 
			
		||||
    Resolution: string[];
 | 
			
		||||
    Authors: AuthorI[];
 | 
			
		||||
    Authors: IAuthor[];
 | 
			
		||||
    Category: string;
 | 
			
		||||
    Changelog: string[];
 | 
			
		||||
    Cover: string;
 | 
			
		||||
| 
						 | 
				
			
			@ -18,7 +18,7 @@ export default class Comic implements ComicI {
 | 
			
		|||
    Name: string;
 | 
			
		||||
    Overview: string;
 | 
			
		||||
    Prefixes: string[];
 | 
			
		||||
    Rating: RatingI;
 | 
			
		||||
    Rating: IRating;
 | 
			
		||||
    Tags: string[];
 | 
			
		||||
    ThreadPublishingDate: Date;
 | 
			
		||||
    Url: string;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
"use strict";
 | 
			
		||||
 | 
			
		||||
// Modules from files
 | 
			
		||||
import { AuthorI, GameI, RatingI } from "../../interfaces";
 | 
			
		||||
import { IAuthor, GameI, IRating } from "../../interfaces";
 | 
			
		||||
 | 
			
		||||
export default class Game implements GameI {
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -13,7 +13,7 @@ export default class Game implements GameI {
 | 
			
		|||
    LastRelease: Date;
 | 
			
		||||
    OS: string[];
 | 
			
		||||
    Version: string;
 | 
			
		||||
    Authors: AuthorI[];
 | 
			
		||||
    Authors: IAuthor[];
 | 
			
		||||
    Category: string;
 | 
			
		||||
    Changelog: string[];
 | 
			
		||||
    Cover: string;
 | 
			
		||||
| 
						 | 
				
			
			@ -22,7 +22,7 @@ export default class Game implements GameI {
 | 
			
		|||
    Name: string;
 | 
			
		||||
    Overview: string;
 | 
			
		||||
    Prefixes: string[];
 | 
			
		||||
    Rating: RatingI;
 | 
			
		||||
    Rating: IRating;
 | 
			
		||||
    Tags: string[];
 | 
			
		||||
    ThreadPublishingDate: Date;
 | 
			
		||||
    Url: string;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,12 +1,12 @@
 | 
			
		|||
"use strict";
 | 
			
		||||
 | 
			
		||||
// 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.
 | 
			
		||||
 */
 | 
			
		||||
export default class HandiWork implements HandiworkI  {
 | 
			
		||||
export default class HandiWork implements IHandiwork {
 | 
			
		||||
 | 
			
		||||
    //#region Properties
 | 
			
		||||
    AssetLink: string;
 | 
			
		||||
| 
						 | 
				
			
			@ -27,7 +27,7 @@ export default class HandiWork implements HandiworkI  {
 | 
			
		|||
    Resolution: string[];
 | 
			
		||||
    SKU: string;
 | 
			
		||||
    Version: string;
 | 
			
		||||
    Authors: AuthorI[];
 | 
			
		||||
    Authors: IAuthor[];
 | 
			
		||||
    Category: string;
 | 
			
		||||
    Cover: string;
 | 
			
		||||
    ID: number;
 | 
			
		||||
| 
						 | 
				
			
			@ -35,7 +35,7 @@ export default class HandiWork implements HandiworkI  {
 | 
			
		|||
    Name: string;
 | 
			
		||||
    Overview: string;
 | 
			
		||||
    Prefixes: string[];
 | 
			
		||||
    Rating: RatingI;
 | 
			
		||||
    Rating: IRating;
 | 
			
		||||
    Tags: string[];
 | 
			
		||||
    ThreadPublishingDate: Date;
 | 
			
		||||
    Url: string;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
/**
 | 
			
		||||
 * Data relating to an external platform (i.e. Patreon).
 | 
			
		||||
 */
 | 
			
		||||
export type ExternalPlatformI = {
 | 
			
		||||
export type IExternalPlatform = {
 | 
			
		||||
    /**
 | 
			
		||||
     * Name of the platform.
 | 
			
		||||
     */
 | 
			
		||||
| 
						 | 
				
			
			@ -15,7 +15,7 @@ export type ExternalPlatformI = {
 | 
			
		|||
/**
 | 
			
		||||
 * Information about the author of a work.
 | 
			
		||||
 */
 | 
			
		||||
export type AuthorI = {
 | 
			
		||||
export type IAuthor = {
 | 
			
		||||
    /**
 | 
			
		||||
     * 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.
 | 
			
		||||
 */
 | 
			
		||||
export type RatingI = {
 | 
			
		||||
export type IRating = {
 | 
			
		||||
    /**
 | 
			
		||||
     * Average value of evaluations.
 | 
			
		||||
     */
 | 
			
		||||
| 
						 | 
				
			
			@ -48,11 +48,11 @@ export type RatingI = {
 | 
			
		|||
 * Collection of values defined for each 
 | 
			
		||||
 * handiwork on the F95Zone platform.
 | 
			
		||||
 */
 | 
			
		||||
interface BasicI {
 | 
			
		||||
interface IBasic {
 | 
			
		||||
    /**
 | 
			
		||||
     * Authors of the work.
 | 
			
		||||
     */
 | 
			
		||||
    Authors: AuthorI[],
 | 
			
		||||
    Authors: IAuthor[],
 | 
			
		||||
    /**
 | 
			
		||||
     * 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.
 | 
			
		||||
     */
 | 
			
		||||
    Rating: RatingI,
 | 
			
		||||
    Rating: IRating,
 | 
			
		||||
    /**
 | 
			
		||||
     * List of tags associated with the work.
 | 
			
		||||
     */
 | 
			
		||||
| 
						 | 
				
			
			@ -106,7 +106,7 @@ interface BasicI {
 | 
			
		|||
/**
 | 
			
		||||
 * 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
 | 
			
		||||
     * measures regarding NSFW scenes
 | 
			
		||||
| 
						 | 
				
			
			@ -141,7 +141,7 @@ export interface GameI extends BasicI {
 | 
			
		|||
/**
 | 
			
		||||
 * 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.
 | 
			
		||||
     */
 | 
			
		||||
| 
						 | 
				
			
			@ -159,7 +159,7 @@ export interface ComicI extends BasicI {
 | 
			
		|||
/**
 | 
			
		||||
 * 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
 | 
			
		||||
     * measures regarding NSFW scenes
 | 
			
		||||
| 
						 | 
				
			
			@ -194,7 +194,7 @@ export interface AnimationI extends BasicI {
 | 
			
		|||
/**
 | 
			
		||||
 * 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.
 | 
			
		||||
     */
 | 
			
		||||
| 
						 | 
				
			
			@ -226,4 +226,4 @@ export interface AssetI extends BasicI {
 | 
			
		|||
 * Collection of values extrapolated from the 
 | 
			
		||||
 * F95 platform representing a particular work.
 | 
			
		||||
 */
 | 
			
		||||
export interface HandiworkI extends GameI, ComicI, AnimationI, AssetI {}
 | 
			
		||||
export interface IHandiwork extends GameI, ComicI, AnimationI, AssetI { }
 | 
			
		||||
		Loading…
	
		Reference in New Issue