mirror of
https://github.com/iptv-org/iptv
synced 2026-04-20 09:47:11 -04:00
Update scripts
This commit is contained in:
15
scripts/models/blocklistRecord.ts
Normal file
15
scripts/models/blocklistRecord.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import type { BlocklistRecordData } from '../types/blocklistRecord'
|
||||
|
||||
export class BlocklistRecord {
|
||||
channelId: string
|
||||
reason: string
|
||||
ref: string
|
||||
|
||||
constructor(data?: BlocklistRecordData) {
|
||||
if (!data) return
|
||||
|
||||
this.channelId = data.channel
|
||||
this.reason = data.reason
|
||||
this.ref = data.ref
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user