Files
iptvnator/shared/playlist.interface.ts
T

34 lines
685 B
TypeScript

/**
* An interface that describe the possible states of the playlist update/refresh process
*/
export enum PlaylistUpdateState {
UPDATED,
IN_PROGRESS,
NOT_UPDATED,
}
/**
* Describes playlist interface
*/
export interface Playlist {
id: string;
_id: string;
title: string;
filename: string;
playlist: any;
importDate: string;
lastUsage: string;
favorites: string[];
items?: unknown[];
header?: unknown;
count: number;
url?: string;
userAgent?: string;
filePath?: string;
autoRefresh: boolean;
updateDate?: number;
updateState?: PlaylistUpdateState;
position?: number;
isTemporary?: boolean;
}