69 lines
1.8 KiB
TypeScript
Executable File
69 lines
1.8 KiB
TypeScript
Executable File
export namespace models {
|
|
|
|
export class Game {
|
|
Collection: string;
|
|
Launch: string;
|
|
Id: string;
|
|
Game: string;
|
|
Version: string;
|
|
Description: string;
|
|
Players: string;
|
|
ThumbnailPath: string;
|
|
ImagePath: string;
|
|
Release: string;
|
|
Modification: string;
|
|
Files: string;
|
|
PublicRepositoryLink: string;
|
|
Genres: string;
|
|
Developers: string;
|
|
Title: string;
|
|
|
|
static createFrom(source: any = {}) {
|
|
return new Game(source);
|
|
}
|
|
|
|
constructor(source: any = {}) {
|
|
if ('string' === typeof source) source = JSON.parse(source);
|
|
this.Collection = source["Collection"];
|
|
this.Launch = source["Launch"];
|
|
this.Id = source["Id"];
|
|
this.Game = source["Game"];
|
|
this.Version = source["Version"];
|
|
this.Description = source["Description"];
|
|
this.Players = source["Players"];
|
|
this.ThumbnailPath = source["ThumbnailPath"];
|
|
this.ImagePath = source["ImagePath"];
|
|
this.Release = source["Release"];
|
|
this.Modification = source["Modification"];
|
|
this.Files = source["Files"];
|
|
this.PublicRepositoryLink = source["PublicRepositoryLink"];
|
|
this.Genres = source["Genres"];
|
|
this.Developers = source["Developers"];
|
|
this.Title = source["Title"];
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
export namespace provider {
|
|
|
|
export class FileBlob {
|
|
Name: string;
|
|
MimeType: string;
|
|
Data: number[];
|
|
|
|
static createFrom(source: any = {}) {
|
|
return new FileBlob(source);
|
|
}
|
|
|
|
constructor(source: any = {}) {
|
|
if ('string' === typeof source) source = JSON.parse(source);
|
|
this.Name = source["Name"];
|
|
this.MimeType = source["MimeType"];
|
|
this.Data = source["Data"];
|
|
}
|
|
}
|
|
|
|
}
|
|
|