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.
36 lines
1.1 KiB
Swift
36 lines
1.1 KiB
Swift
//
|
|
// ReportResp.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct ReportResp: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Accepted is how many samples passed validation. Every one of them was accepted, or the whole report was refused — there is no partial success. */
|
|
public var accepted: Int64?
|
|
/** Stored is whether the warehouse actually persisted them. False means the datastore was unavailable and the poll of history was lost; the request still succeeded, so a device retries without being blocked. */
|
|
public var stored: Bool?
|
|
|
|
public init(accepted: Int64? = nil, stored: Bool? = nil) {
|
|
self.accepted = accepted
|
|
self.stored = stored
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case accepted
|
|
case stored
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(accepted, forKey: .accepted)
|
|
try container.encodeIfPresent(stored, forKey: .stored)
|
|
}
|
|
}
|
|
|