18 lines
251 B
Swift
18 lines
251 B
Swift
import Foundation
|
|
|
|
struct TableInfo: Codable {
|
|
|
|
let id: String
|
|
|
|
let name: String
|
|
|
|
var players: [String]
|
|
}
|
|
|
|
extension TableInfo: Comparable {
|
|
|
|
static func < (lhs: TableInfo, rhs: TableInfo) -> Bool {
|
|
lhs.name < rhs.name
|
|
}
|
|
}
|