mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The projection these were generated from predated the compute migration, so they described /v1/visor — which the API serves at zero paths now. No /v1/visor path survives here.
46 lines
1.4 KiB
Swift
46 lines
1.4 KiB
Swift
//
|
|
// DestinationTest.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct DestinationTest: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Error is the platform's rejection, present only on a failed send. */
|
|
public var error: String?
|
|
/** Message is the platform's own note about the send, present only on success. */
|
|
public var message: String?
|
|
/** OK is true when the platform accepted the synthetic event. */
|
|
public var ok: Bool?
|
|
/** Sent is how many events the platform accepted, present only on success. */
|
|
public var sent: Int64?
|
|
|
|
public init(error: String? = nil, message: String? = nil, ok: Bool? = nil, sent: Int64? = nil) {
|
|
self.error = error
|
|
self.message = message
|
|
self.ok = ok
|
|
self.sent = sent
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case error
|
|
case message
|
|
case ok
|
|
case sent
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(error, forKey: .error)
|
|
try container.encodeIfPresent(message, forKey: .message)
|
|
try container.encodeIfPresent(ok, forKey: .ok)
|
|
try container.encodeIfPresent(sent, forKey: .sent)
|
|
}
|
|
}
|
|
|