diff options
Diffstat (limited to 'android/lib/model/src')
| -rw-r--r-- | android/lib/model/src/main/kotlin/net/mullvad/mullvadvpn/model/Device.kt | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/android/lib/model/src/main/kotlin/net/mullvad/mullvadvpn/model/Device.kt b/android/lib/model/src/main/kotlin/net/mullvad/mullvadvpn/model/Device.kt index a9ad4ec874..92f0621e6e 100644 --- a/android/lib/model/src/main/kotlin/net/mullvad/mullvadvpn/model/Device.kt +++ b/android/lib/model/src/main/kotlin/net/mullvad/mullvadvpn/model/Device.kt @@ -4,13 +4,8 @@ import android.os.Parcelable import kotlinx.parcelize.Parcelize @Parcelize -data class Device( - val id: String, - val name: String, - val pubkey: ByteArray, - val ports: ArrayList<DevicePort>, - val created: String -) : Parcelable { +data class Device(val id: String, val name: String, val pubkey: ByteArray, val created: String) : + Parcelable { // Generated by Android Studio override fun equals(other: Any?): Boolean { if (this === other) return true @@ -21,7 +16,6 @@ data class Device( if (id != other.id) return false if (name != other.name) return false if (!pubkey.contentEquals(other.pubkey)) return false - if (ports != other.ports) return false return true } @@ -31,7 +25,6 @@ data class Device( var result = id.hashCode() result = 31 * result + name.hashCode() result = 31 * result + pubkey.contentHashCode() - result = 31 * result + ports.hashCode() return result } } |
