mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
initial swift data conversion
This commit is contained in:
parent
183924d4dc
commit
b2c72ae166
130 changed files with 2939 additions and 2269 deletions
28
Meshtastic/Model/DeviceMetadataEntity.swift
Normal file
28
Meshtastic/Model/DeviceMetadataEntity.swift
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
//
|
||||
// DeviceMetadataEntity.swift
|
||||
// Meshtastic
|
||||
//
|
||||
// SwiftData model for device metadata.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import SwiftData
|
||||
|
||||
@Model
|
||||
final class DeviceMetadataEntity {
|
||||
var canShutdown: Bool = false
|
||||
var deviceStateVersion: Int32 = 0
|
||||
var excludedModules: Int32 = 0
|
||||
var firmwareVersion: String?
|
||||
var hasBluetooth: Bool = false
|
||||
var hasEthernet: Bool = false
|
||||
var hasWifi: Bool = false
|
||||
var hwModel: String?
|
||||
var positionFlags: Int32 = 0
|
||||
var role: Int32 = 0
|
||||
var time: Date?
|
||||
|
||||
var metadataNode: NodeInfoEntity?
|
||||
|
||||
init() {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue