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.
42 lines
1.0 KiB
Swift
42 lines
1.0 KiB
Swift
//
|
|
// Tip.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct Tip: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var at: Date?
|
|
public var build: Check?
|
|
public var sha: String?
|
|
public var title: String?
|
|
|
|
public init(at: Date? = nil, build: Check? = nil, sha: String? = nil, title: String? = nil) {
|
|
self.at = at
|
|
self.build = build
|
|
self.sha = sha
|
|
self.title = title
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case at
|
|
case build
|
|
case sha
|
|
case title
|
|
}
|
|
|
|
// 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(build, forKey: .build)
|
|
try container.encodeIfPresent(sha, forKey: .sha)
|
|
try container.encodeIfPresent(title, forKey: .title)
|
|
}
|
|
}
|
|
|