Renamed publisher to publishers and added array
Also added publisher/serialization support for MALAPI MAnga
This commit is contained in:
parent
f3e0b32bb8
commit
4eee3704e8
4 changed files with 7 additions and 4 deletions
|
|
@ -7,7 +7,7 @@ export type ComicBookData = ModelToData<ComicBookModel>;
|
|||
|
||||
export class ComicBookModel extends MediaTypeModel {
|
||||
creators: string[];
|
||||
publisher: string;
|
||||
publishers: string[];
|
||||
plot: string;
|
||||
issues: number;
|
||||
image: string;
|
||||
|
|
@ -27,7 +27,7 @@ export class ComicBookModel extends MediaTypeModel {
|
|||
super();
|
||||
|
||||
this.creators = [];
|
||||
this.publisher = '';
|
||||
this.publishers = [];
|
||||
this.plot = '';
|
||||
this.issues = 0;
|
||||
this.image = '';
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ export class MangaModel extends MediaTypeModel {
|
|||
|
||||
released: boolean;
|
||||
status: string;
|
||||
publishers: string[];
|
||||
publishedFrom: string;
|
||||
publishedTo: string;
|
||||
|
||||
|
|
@ -40,6 +41,7 @@ export class MangaModel extends MediaTypeModel {
|
|||
|
||||
this.released = false;
|
||||
this.status = '';
|
||||
this.publishers = [];
|
||||
this.publishedFrom = '';
|
||||
this.publishedTo = '';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue