mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
38 lines
791 B
TypeScript
38 lines
791 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;
|
|
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;
|
|
serverUrl?: string;
|
|
username?: string;
|
|
password?: string;
|
|
macAddress?: string;
|
|
portalUrl?: string;
|
|
}
|