api descriptions

This commit is contained in:
mProjectsCode 2022-05-05 21:48:54 +02:00
parent 99980028d0
commit 30d07f79f3
6 changed files with 20 additions and 5 deletions

View file

@ -3,6 +3,7 @@ import {MediaTypeModel} from '../models/MediaTypeModel';
export abstract class APIModel {
apiName: string;
apiUrl: string;
apiDescription: string;
types: string[];
/**

View file

@ -11,6 +11,7 @@ export class OMDbAPI extends APIModel {
this.plugin = plugin;
this.apiName = 'OMDbAPI';
this.apiDescription = 'A free API for Movies and Series.';
this.apiUrl = 'http://www.omdbapi.com/';
this.types = ['movie', 'series'];
}

View file

@ -6,6 +6,7 @@ export class TestAPI extends APIModel {
constructor() {
super();
this.apiName = 'testAPI';
this.apiDescription = 'The test API used during development.';
this.apiUrl = 'www.test.api';
this.types = ['test'];
}