Class QueryObjectModel
Query the object model using a key and flags, returning a formatted JSON response compatible with the M409 response format without going through the code execution pipeline
[RequiredPermissions(SbcPermissions.ObjectModelRead|SbcPermissions.ObjectModelReadWrite)]
public class QueryObjectModel : Command<JsonElement>
- Inheritance
-
QueryObjectModel
- Derived
- Inherited Members
Constructors
QueryObjectModel()
public QueryObjectModel()
Properties
Flags
RRF-compatible flags string controlling response content: 'f' = only include live (frequently changing) properties, 'n' = include null values, 'v' = include verbose properties, 'o' = include obsolete properties, 'a' followed by digits = array start index, 'd' followed by digits = max depth
public string Flags { get; set; }
Property Value
Key
Object model key path to query (e.g. "heat", "move.axes", "" for root)
public string Key { get; set; }
Property Value
Methods
UpdateFromJson(JsonElement)
Update this instance from a given JSON element
public override void UpdateFromJson(JsonElement jsonElement)
Parameters
jsonElementJsonElementElement to update this intance from
Remarks
This method is auto-generated
Exceptions
- JsonException
Failed to deserialize data
UpdateFromJsonReader(ref Utf8JsonReader)
Update this instance from a given JSON element
public override void UpdateFromJsonReader(ref Utf8JsonReader reader)
Parameters
readerUtf8JsonReaderReader to update this intance from
Remarks
This method is auto-generated
Exceptions
- JsonException
Failed to deserialize data