it creates files now
This commit is contained in:
parent
c67a0bf590
commit
4405eb4a34
7 changed files with 61 additions and 19 deletions
|
|
@ -2,6 +2,7 @@ export abstract class MediaTypeModel {
|
|||
type: string;
|
||||
title: string;
|
||||
dataSource: string;
|
||||
id: string;
|
||||
|
||||
abstract toMetaData(): string;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ export class MovieModel extends MediaTypeModel {
|
|||
type: string;
|
||||
title: string;
|
||||
dataSource: string;
|
||||
id: string;
|
||||
|
||||
genres: string[];
|
||||
producer: string;
|
||||
|
|
@ -19,14 +20,16 @@ export class MovieModel extends MediaTypeModel {
|
|||
personalRating: number;
|
||||
|
||||
|
||||
constructor() {
|
||||
constructor(obj: any = {}) {
|
||||
super();
|
||||
|
||||
Object.assign(this, obj);
|
||||
|
||||
this.type = 'movie';
|
||||
}
|
||||
|
||||
toMetaData(): string {
|
||||
return '';
|
||||
return JSON.stringify(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue