mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
32 lines
872 B
Swift
32 lines
872 B
Swift
//
|
|
// MyInfoModel.swift
|
|
// MeshtasticClient
|
|
//
|
|
// Created by Garth Vander Houwen on 9/16/21.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
struct MyInfoModel: Identifiable, Codable {
|
|
|
|
let id: UInt32
|
|
var myNodeNum: UInt32
|
|
var hasGps: Bool
|
|
var numBands: UInt32
|
|
var maxChannels: UInt32
|
|
var firmwareVersion: String
|
|
var messageTimeoutMsec: UInt32
|
|
var minAppVersion: UInt32
|
|
|
|
init(myNodeNum: UInt32, hasGps: Bool, numBands: UInt32, maxChannels: UInt32, firmwareVersion: String, messageTimeoutMsec: UInt32, minAppVersion: UInt32) {
|
|
|
|
self.id = myNodeNum
|
|
self.myNodeNum = myNodeNum
|
|
self.hasGps = hasGps
|
|
self.numBands = numBands
|
|
self.maxChannels = maxChannels
|
|
self.firmwareVersion = firmwareVersion
|
|
self.messageTimeoutMsec = messageTimeoutMsec
|
|
self.minAppVersion = minAppVersion
|
|
}
|
|
}
|