Files

41 lines
1.6 KiB
Swift

//
// Venue.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Venue: Sendable, Codable, ParameterConvertible, Hashable {
/** Name is the media room to join: the value POST /v1/meet/getToken takes as roomName, and the value the media server keys participants on. */
public var name: String?
/** Ready reports that this deployment can mint a join token for this room. It is false on a deployment holding no media-server key, where Name is still correct — the name is a property of the room and the key is a property of the deployment, so a caller learns the room's identity either way and learns not to offer a join button. */
public var ready: Bool?
/** WS is where the media plane is — the address a client opens its own browser-to-server connection to. Empty when this deployment has not been told where its media server lives, which is reported rather than refused: a surface can say a call is unavailable without a second request. */
public var ws: String?
public init(name: String? = nil, ready: Bool? = nil, ws: String? = nil) {
self.name = name
self.ready = ready
self.ws = ws
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case name
case ready
case ws
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(ready, forKey: .ready)
try container.encodeIfPresent(ws, forKey: .ws)
}
}