Fix Parcelable

This commit is contained in:
Mygod
2019-02-01 15:18:49 +08:00
parent 4de891b459
commit 13e4819511
7 changed files with 36 additions and 22 deletions

View File

@@ -1,7 +1,8 @@
package be.mygod.vpnhotspot.room
import android.os.Parcelable
import androidx.room.*
import androidx.versionedparcelable.VersionedParcelable
import kotlinx.android.parcel.Parcelize
import java.net.InetAddress
@Entity(foreignKeys = [ForeignKey(entity = TrafficRecord::class, parentColumns = ["id"], childColumns = ["previousId"],
@@ -61,6 +62,7 @@ data class TrafficRecord(
}
}
@Parcelize
data class ClientStats(
val timestamp: Long = 0,
val count: Long = 0,
@@ -68,4 +70,4 @@ data class ClientStats(
val sentBytes: Long = 0,
val receivedPackets: Long = 0,
val receivedBytes: Long = 0
) : VersionedParcelable
) : Parcelable