mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: replace MyNodeInfo with MyNodeEntity (#1277)
This commit is contained in:
parent
d89d4b7baa
commit
c30ee2f55f
14 changed files with 550 additions and 129 deletions
|
|
@ -1,20 +1,11 @@
|
|||
package com.geeksville.mesh
|
||||
|
||||
import android.os.Parcelable
|
||||
import androidx.room.Entity
|
||||
import androidx.room.PrimaryKey
|
||||
import kotlinx.parcelize.Parcelize
|
||||
|
||||
/**
|
||||
* Room [Entity] and [PrimaryKey] annotations and imports can be removed when only using the API.
|
||||
* For details check the AIDL interface in [com.geeksville.mesh.IMeshService]
|
||||
*/
|
||||
|
||||
// MyNodeInfo sent via special protobuf from radio
|
||||
@Parcelize
|
||||
@Entity(tableName = "MyNodeInfo")
|
||||
data class MyNodeInfo(
|
||||
@PrimaryKey(autoGenerate = false)
|
||||
val myNodeNum: Int,
|
||||
val hasGPS: Boolean,
|
||||
val model: String?,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue