From 537ed932a4c8d639089f276e322de4e946b0d26b Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Fri, 8 Dec 2023 10:04:55 -0800 Subject: Starting to move to async/await model so the client code is no longer burdoned by observation and isn't bound to this app. --- Hotline/Models/Server.swift | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Hotline/Models/Server.swift (limited to 'Hotline/Models/Server.swift') diff --git a/Hotline/Models/Server.swift b/Hotline/Models/Server.swift new file mode 100644 index 0000000..c2063ea --- /dev/null +++ b/Hotline/Models/Server.swift @@ -0,0 +1,16 @@ +import SwiftUI + +@Observable final class Server { + let name: String + let description: String? + let users: Int = 0 + let address: String + let port: Int + + init(name: String, description: String?, address: String, port: Int) { + self.name = name + self.description = description + self.address = address + self.port = port + } +} -- cgit