mirror of
https://github.com/iptv-org/iptv
synced 2025-12-22 21:37:23 -05:00
Update scripts
This commit is contained in:
20
scripts/models/country.ts
Normal file
20
scripts/models/country.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
type CountryProps = {
|
||||
code: string
|
||||
name: string
|
||||
languages: string[]
|
||||
flag: string
|
||||
}
|
||||
|
||||
export class Country {
|
||||
code: string
|
||||
name: string
|
||||
languages: string[]
|
||||
flag: string
|
||||
|
||||
constructor({ code, name, languages, flag }: CountryProps) {
|
||||
this.code = code
|
||||
this.name = name
|
||||
this.languages = languages
|
||||
this.flag = flag
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user