feat(xtream): add portal status type and interface to manage portal state

This commit is contained in:
4gray committed 2024-12-26 14:57:09 +01:00
1 parent bc8e5c98ea
commit f4dda4c274
1 file changed
+12
+12
View File
@@ -6,6 +6,17 @@ import { EpgItem } from '../xtream/epg-item.interface';
export type ContentType = 'live' | 'vod' | 'series';
export type PortalStatusType =
| 'active'
| 'inactive'
| 'expired'
| 'unavailable';
export interface XtreamPortalStatus {
status: 'active' | 'inactive' | 'expired' | 'unavailable';
message?: string;
}
export interface XtreamState {
isLoadingCategories: boolean;
isLoadingContent: boolean;
@@ -27,4 +38,5 @@ export interface XtreamState {
currentPlaylist: any | null;
epgItems: EpgItem[];
hideExternalInfoDialog: boolean;
portalStatus: PortalStatusType;
}