mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
27 lines
510 B
Swift
27 lines
510 B
Swift
//
|
|
// MyInfoEntity.swift
|
|
// Meshtastic
|
|
//
|
|
// SwiftData model for connected device info.
|
|
//
|
|
|
|
import Foundation
|
|
import SwiftData
|
|
|
|
@Model
|
|
final class MyInfoEntity {
|
|
var bleName: String?
|
|
var deviceId: Data?
|
|
var minAppVersion: Int32 = 0
|
|
var myNodeNum: Int64 = 0
|
|
var peripheralId: String?
|
|
var rebootCount: Int32 = 0
|
|
var registered: Bool = false
|
|
|
|
@Relationship(deleteRule: .cascade, inverse: \ChannelEntity.myInfoChannel)
|
|
var channels: [ChannelEntity] = []
|
|
|
|
var myInfoNode: NodeInfoEntity?
|
|
|
|
init() {}
|
|
}
|