Update site.ts

This commit is contained in:
freearhey
2026-04-17 00:14:46 +03:00
parent 14d8f1b0e6
commit e39882c1be

View File

@@ -1,5 +1,5 @@
import { Collection } from '@freearhey/core'
import { Issue } from './'
import { Channel, Issue } from './'
enum StatusCode {
DOWN = 'down',
@@ -14,21 +14,18 @@ export interface Status {
export interface SiteData {
domain: string
totalChannels?: number
markedChannels?: number
channels?: Collection<Channel>
issues: Collection<Issue>
}
export class Site {
domain: string
totalChannels: number
markedChannels: number
channels: Collection<Channel>
issues: Collection<Issue>
constructor(data: SiteData) {
this.domain = data.domain
this.totalChannels = data.totalChannels || 0
this.markedChannels = data.markedChannels || 0
this.channels = new Collection()
this.issues = data.issues
}