2021-01-22 21:05:21 +00:00
|
|
|
import {ActorType, TagType} from './VideoTypes';
|
|
|
|
|
|
2021-01-24 16:43:38 +01:00
|
|
|
export namespace VideoTypes {
|
2021-01-22 21:05:21 +00:00
|
|
|
export interface loadVideoType {
|
|
|
|
|
movie_url: string
|
|
|
|
|
thumbnail: string
|
|
|
|
|
movie_id: number
|
|
|
|
|
movie_name: string
|
|
|
|
|
likes: number
|
|
|
|
|
quality: number
|
|
|
|
|
length: number
|
|
|
|
|
tags: TagType[]
|
|
|
|
|
suggesttag: TagType[]
|
|
|
|
|
actors: ActorType[]
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-24 16:43:38 +01:00
|
|
|
export interface startDataType {
|
2021-01-22 21:05:21 +00:00
|
|
|
total: number;
|
|
|
|
|
fullhd: number;
|
|
|
|
|
hd: number;
|
|
|
|
|
sd: number;
|
|
|
|
|
tags: number;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface VideoUnloadedType {
|
|
|
|
|
movie_id: number;
|
|
|
|
|
movie_name: string
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-24 16:43:38 +01:00
|
|
|
export namespace SettingsTypes {
|
2021-01-22 21:05:21 +00:00
|
|
|
export interface initialApiCallData {
|
|
|
|
|
DarkMode: boolean;
|
|
|
|
|
passwordEnabled: boolean;
|
|
|
|
|
mediacenter_name: string;
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-24 16:43:38 +01:00
|
|
|
export interface loadGeneralSettingsType {
|
2021-01-22 21:05:21 +00:00
|
|
|
video_path: string,
|
|
|
|
|
episode_path: string,
|
|
|
|
|
mediacenter_name: string,
|
|
|
|
|
password: string,
|
|
|
|
|
passwordEnabled: boolean,
|
|
|
|
|
TMDB_grabbing: boolean,
|
|
|
|
|
|
|
|
|
|
videonr: number,
|
|
|
|
|
dbsize: number,
|
|
|
|
|
difftagnr: number,
|
|
|
|
|
tagsadded: number
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-24 16:43:38 +01:00
|
|
|
export interface getStatusMessageType {
|
2021-01-22 21:05:21 +00:00
|
|
|
contentAvailable: boolean;
|
|
|
|
|
message: string;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-24 16:43:38 +01:00
|
|
|
export namespace ActorTypes {
|
2021-01-22 21:05:21 +00:00
|
|
|
/**
|
|
|
|
|
* result of actor fetch
|
|
|
|
|
*/
|
|
|
|
|
export interface videofetchresult {
|
|
|
|
|
videos: VideoTypes.VideoUnloadedType[];
|
|
|
|
|
info: ActorType;
|
|
|
|
|
}
|
|
|
|
|
}
|