aboutsummaryrefslogtreecommitdiff
path: root/Hotline/Models/Server.swift
blob: c2063eaca4fe3f4c6f4343174bc7841cc7d25ecf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
  }
}