diff options
Diffstat (limited to 'android')
| -rw-r--r-- | android/src/main/kotlin/net/mullvad/mullvadvpn/model/LocationConstraint.kt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/model/LocationConstraint.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/model/LocationConstraint.kt new file mode 100644 index 0000000000..4fc07a4b43 --- /dev/null +++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/model/LocationConstraint.kt @@ -0,0 +1,11 @@ +package net.mullvad.mullvadvpn.model + +sealed class LocationConstraint(val code: Array<String>) { + class Country(var countryCode: String) : LocationConstraint(arrayOf(countryCode)) + + class City(var countryCode: String, var cityCode: String) + : LocationConstraint(arrayOf(countryCode, cityCode)) + + class Hostname(var countryCode: String, var cityCode: String, var hostname: String) + : LocationConstraint(arrayOf(countryCode, cityCode, hostname)) +} |
