Some data handling changes

This commit is contained in:
mProjectsCode 2022-05-04 20:01:06 +02:00
parent 96d74a7732
commit c67a0bf590
12 changed files with 66 additions and 39 deletions

View 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
View 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 '';
}
}