mirror of
https://github.com/iptv-org/epg
synced 2026-05-06 17:37:06 -04:00
Update site.ts
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { Collection } from '@freearhey/core'
|
import { Collection } from '@freearhey/core'
|
||||||
import { Issue } from './'
|
import { Channel, Issue } from './'
|
||||||
|
|
||||||
enum StatusCode {
|
enum StatusCode {
|
||||||
DOWN = 'down',
|
DOWN = 'down',
|
||||||
@@ -14,21 +14,18 @@ export interface Status {
|
|||||||
|
|
||||||
export interface SiteData {
|
export interface SiteData {
|
||||||
domain: string
|
domain: string
|
||||||
totalChannels?: number
|
channels?: Collection<Channel>
|
||||||
markedChannels?: number
|
|
||||||
issues: Collection<Issue>
|
issues: Collection<Issue>
|
||||||
}
|
}
|
||||||
|
|
||||||
export class Site {
|
export class Site {
|
||||||
domain: string
|
domain: string
|
||||||
totalChannels: number
|
channels: Collection<Channel>
|
||||||
markedChannels: number
|
|
||||||
issues: Collection<Issue>
|
issues: Collection<Issue>
|
||||||
|
|
||||||
constructor(data: SiteData) {
|
constructor(data: SiteData) {
|
||||||
this.domain = data.domain
|
this.domain = data.domain
|
||||||
this.totalChannels = data.totalChannels || 0
|
this.channels = new Collection()
|
||||||
this.markedChannels = data.markedChannels || 0
|
|
||||||
this.issues = data.issues
|
this.issues = data.issues
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user