mirror of https://github.com/iptv-org/iptv
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
346 B
TypeScript
21 lines
346 B
TypeScript
1 year ago
|
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
|
||
|
}
|
||
|
}
|