From 3bec3564bd134a60cc88d37b2facc4a4fbb85dee Mon Sep 17 00:00:00 2001 From: 4gray <4gray@users.noreply.github.com> Date: Thu, 17 Aug 2023 23:51:02 +0200 Subject: [PATCH] feat(portals): extend models and interfaces --- shared/stalker-portal-actions.enum.ts | 1 + src/app/stalker/stalker-content-types.ts | 20 ++++++++++++++++++++ src/app/xtream/content-type.enum.ts | 1 + 3 files changed, 22 insertions(+) create mode 100644 src/app/stalker/stalker-content-types.ts diff --git a/shared/stalker-portal-actions.enum.ts b/shared/stalker-portal-actions.enum.ts index 60d10ce80..372167685 100644 --- a/shared/stalker-portal-actions.enum.ts +++ b/shared/stalker-portal-actions.enum.ts @@ -3,4 +3,5 @@ export enum StalkerPortalActions { GetGenres = 'get_genres', CreateLink = 'create_link', GetOrderedList = 'get_ordered_list', + Favorites = 'favorites', } diff --git a/src/app/stalker/stalker-content-types.ts b/src/app/stalker/stalker-content-types.ts new file mode 100644 index 000000000..efb42ebe7 --- /dev/null +++ b/src/app/stalker/stalker-content-types.ts @@ -0,0 +1,20 @@ +import { StalkerPortalActions } from '../../../shared/stalker-portal-actions.enum'; + +export const StalkerContentTypes = { + stb: { + doAuth: 'do_auth', + handshake: 'handshake', + }, + itv: { + title: 'Live streams', + getContentAction: StalkerPortalActions.GetOrderedList, + getCategoryAction: StalkerPortalActions.GetGenres, + getLink: StalkerPortalActions.CreateLink, + }, + vod: { + title: 'VOD streams', + getContentAction: StalkerPortalActions.GetOrderedList, + getCategoryAction: StalkerPortalActions.GetCategories, + getLink: StalkerPortalActions.CreateLink, + }, +}; diff --git a/src/app/xtream/content-type.enum.ts b/src/app/xtream/content-type.enum.ts index abd1672fa..af7a8ef05 100644 --- a/src/app/xtream/content-type.enum.ts +++ b/src/app/xtream/content-type.enum.ts @@ -2,4 +2,5 @@ export enum ContentType { VODS = 'vod', SERIES = 'series', ITV = 'itv', + FAVORITES = 'favorites', }