Meshtastic-Apple/MeshtasticClient/Model/MyInfoModel.swift
2021-09-21 20:49:12 -07:00

36 lines
984 B
Swift

//
// MyInfoModel.swift
// MeshtasticClient
//
// Created by Garth Vander Houwen on 9/16/21.
//
import Foundation
struct MyInfoModel: Identifiable, Codable {
let id: UUID
var myNodeNum: UInt32
var hasGps: Bool
var numBands: UInt32
var maxChannels: UInt32
var firmwareVersion: String
var rebootCount: UInt32
var messageTimeoutMsec: UInt32
var minAppVersion: UInt32
init(id: UUID = UUID(), myNodeNum: UInt32, hasGps: Bool, numBands: UInt32, maxChannels: UInt32, firmwareVersion: String, rebootCount: UInt32, messageTimeoutMsec: UInt32, minAppVersion: UInt32) {
self.id = id
self.myNodeNum = myNodeNum
self.hasGps = hasGps
self.numBands = numBands
self.maxChannels = maxChannels
self.firmwareVersion = firmwareVersion
self.rebootCount = rebootCount
self.messageTimeoutMsec = messageTimeoutMsec
self.minAppVersion = minAppVersion
}
}