mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The lock sat at 574d1f1d while the product moved on. The team surface stopped at rooms — no messages path, no way to open one — so anything built on this client had to reach past it with its own HTTP calls, which is the duplication a generated client exists to prevent.
43 lines
1.2 KiB
Swift
43 lines
1.2 KiB
Swift
//
|
|
// Precompile.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct Precompile: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var at: String?
|
|
/** Code is whether the address carries any. False is an ANSWER — the node replied and there is nothing deployed there — and is not the same as the read having failed, which the enclosing Reach reports instead. */
|
|
public var code: Bool?
|
|
public var name: String?
|
|
public var role: String?
|
|
|
|
public init(at: String? = nil, code: Bool? = nil, name: String? = nil, role: String? = nil) {
|
|
self.at = at
|
|
self.code = code
|
|
self.name = name
|
|
self.role = role
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case at
|
|
case code
|
|
case name
|
|
case role
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(at, forKey: .at)
|
|
try container.encodeIfPresent(code, forKey: .code)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(role, forKey: .role)
|
|
}
|
|
}
|
|
|