Basic network call implementation
This commit is contained in:
25
KlipperMon/PrinterObjectsQuery.swift
Normal file
25
KlipperMon/PrinterObjectsQuery.swift
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user