summaryrefslogtreecommitdiffhomepage
path: root/android/lib
diff options
context:
space:
mode:
authorJonatan Rhodin <jonatan.rhodin@mullvad.net>2023-10-27 09:42:05 +0200
committerJonatan Rhodin <jonatan.rhodin@mullvad.net>2023-10-27 09:42:05 +0200
commit44676ede5ba7df73fc4f7586fea010db55b80d4d (patch)
tree2e0849ec6951fc2b6d12b97f2876c17b1b09245b /android/lib
parent36f2fad7e34ab4a87f371278e5416ff5cea00971 (diff)
parenteda60b21c9190a3857655a044f8e81bd29189eef (diff)
downloadmullvadvpn-44676ede5ba7df73fc4f7586fea010db55b80d4d.tar.xz
mullvadvpn-44676ede5ba7df73fc4f7586fea010db55b80d4d.zip
Merge branch 'expose-ownership-and-provider-for-relays-droid-464'
Diffstat (limited to 'android/lib')
-rw-r--r--android/lib/model/src/main/kotlin/net/mullvad/mullvadvpn/model/Relay.kt9
1 files changed, 7 insertions, 2 deletions
diff --git a/android/lib/model/src/main/kotlin/net/mullvad/mullvadvpn/model/Relay.kt b/android/lib/model/src/main/kotlin/net/mullvad/mullvadvpn/model/Relay.kt
index b1abdc3c75..461648209c 100644
--- a/android/lib/model/src/main/kotlin/net/mullvad/mullvadvpn/model/Relay.kt
+++ b/android/lib/model/src/main/kotlin/net/mullvad/mullvadvpn/model/Relay.kt
@@ -4,8 +4,13 @@ import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
-data class Relay(val hostname: String, val active: Boolean, val endpointData: RelayEndpointData) :
- Parcelable {
+data class Relay(
+ val hostname: String,
+ val active: Boolean,
+ val owned: Boolean,
+ val provider: String,
+ val endpointData: RelayEndpointData
+) : Parcelable {
val isWireguardRelay
get() = endpointData is RelayEndpointData.Wireguard
}