Files

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)
}
}