Skip to content

Commit

Permalink
feat(xtream): add portal status type and interface to manage portal s…
Browse files Browse the repository at this point in the history
…tate
  • Loading branch information
4gray committed Dec 26, 2024
1 parent bc8e5c9 commit f4dda4c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/app/xtream-tauri/xtream-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -27,4 +38,5 @@ export interface XtreamState {
currentPlaylist: any | null;
epgItems: EpgItem[];
hideExternalInfoDialog: boolean;
portalStatus: PortalStatusType;
}

0 comments on commit f4dda4c

Please sign in to comment.