From 2278b3a64086bd4b533a0ea5601afecce2e744a2 Mon Sep 17 00:00:00 2001 From: "Jack Boswell (boswelja)" Date: Thu, 12 Aug 2021 23:20:55 +1200 Subject: [PATCH] Make Watch.kt parcelable --- .../main/kotlin/com/boswelja/watchconnection/core/Watch.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/main/kotlin/com/boswelja/watchconnection/core/Watch.kt b/core/src/main/kotlin/com/boswelja/watchconnection/core/Watch.kt index 29e23377..0bf2f145 100644 --- a/core/src/main/kotlin/com/boswelja/watchconnection/core/Watch.kt +++ b/core/src/main/kotlin/com/boswelja/watchconnection/core/Watch.kt @@ -1,6 +1,8 @@ package com.boswelja.watchconnection.core +import android.os.Parcelable import java.util.UUID +import kotlinx.parcelize.Parcelize /** * The standardised Watch representation. @@ -11,12 +13,13 @@ import java.util.UUID * @param platform The platform identifier string of this watch. You shouldn't need to use this * outside the calling platform. */ +@Parcelize open class Watch( open val id: UUID, open val name: String, open val platformId: String, open val platform: String -) { +) : Parcelable { constructor( name: String,