Basic network call implementation

This commit is contained in:
Madeline
2023-02-07 15:04:01 -05:00
parent 8876fc666a
commit dd4324e395
6 changed files with 133 additions and 4 deletions

View File

@@ -0,0 +1,25 @@
//
// PrinterObjectsQuery.swift
// KlipperMon
//
// Created by maddiefuzz on 2/7/23.
//
import Foundation
struct PrinterObjectsQuery: Decodable {
let result: ResultsData
}
struct ResultsData: Decodable {
let eventtime: Double
let status: StatusData
}
struct StatusData: Decodable {
let extruder: ExtruderData
}
struct ExtruderData: Decodable {
let temperature: Double
}