AutoCat/AutoCatCore/Models/DTO/DebugInfoDto.swift

32 lines
759 B
Swift

//
// DebugInfoDto.swift
// AutoCatCore
//
// Created by Selim Mustafaev on 12.06.2024.
// Copyright © 2024 Selim Mustafaev. All rights reserved.
//
import Foundation
public enum DebugInfoStatus: Int, Sendable, Decodable {
case success = 0
case error = 1
case warning = 2
}
public struct DebugInfoDto: Decodable, Sendable {
public var autocod: DebugInfoEntryDto
public var vin01vin: DebugInfoEntryDto
public var vin01base: DebugInfoEntryDto
public var vin01history: DebugInfoEntryDto
public var nomerogram: DebugInfoEntryDto
}
public struct DebugInfoEntryDto: Decodable, Sendable, Equatable {
public var fields: Int64 = 0
public var error: String?
public var status: DebugInfoStatus = .success
}