mirror of
https://github.com/yggdrasil-network/yggdrasil-ios.git
synced 2025-04-28 22:25:10 +03:00
Tweaks
This commit is contained in:
parent
0bea3a1613
commit
1b9e84d056
9 changed files with 234 additions and 137 deletions
|
@ -32,6 +32,9 @@ struct YggdrasilPeer: Codable, Identifiable {
|
|||
let key: String?
|
||||
let priority: UInt8
|
||||
let cost: UInt16?
|
||||
let rxBytes: Double?
|
||||
let txBytes: Double?
|
||||
let uptime: Int64?
|
||||
|
||||
enum CodingKeys: String, CodingKey {
|
||||
case remote = "URI"
|
||||
|
@ -40,6 +43,9 @@ struct YggdrasilPeer: Codable, Identifiable {
|
|||
case key = "Key"
|
||||
case priority = "Priority"
|
||||
case cost = "Cost"
|
||||
case rxBytes = "RXBytes"
|
||||
case txBytes = "TXBytes"
|
||||
case uptime = "Uptime"
|
||||
}
|
||||
|
||||
public func getStatusBadgeColor() -> SwiftUI.Color {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue