Some data handling changes
This commit is contained in:
parent
96d74a7732
commit
c67a0bf590
12 changed files with 66 additions and 39 deletions
7
src/models/MediaTypeModel.ts
Normal file
7
src/models/MediaTypeModel.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
export abstract class MediaTypeModel {
|
||||
type: string;
|
||||
title: string;
|
||||
dataSource: string;
|
||||
|
||||
abstract toMetaData(): string;
|
||||
}
|
||||
32
src/models/MovieModel.ts
Normal file
32
src/models/MovieModel.ts
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
import {MediaTypeModel} from './MediaTypeModel';
|
||||
|
||||
export class MovieModel extends MediaTypeModel {
|
||||
type: string;
|
||||
title: string;
|
||||
dataSource: string;
|
||||
|
||||
genres: string[];
|
||||
producer: string;
|
||||
duration: string;
|
||||
onlineRating: number;
|
||||
image: string;
|
||||
|
||||
released: boolean;
|
||||
premiere: string;
|
||||
|
||||
watched: boolean;
|
||||
lastWatched: string;
|
||||
personalRating: number;
|
||||
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
this.type = 'movie';
|
||||
}
|
||||
|
||||
toMetaData(): string {
|
||||
return '';
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue