mirror of
https://github.com/iptv-org/iptv
synced 2025-12-17 10:57:18 -05:00
21 lines
346 B
TypeScript
21 lines
346 B
TypeScript
|
|
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
|
||
|
|
}
|
||
|
|
}
|