Table of Contents

Class QueryObjectModel

Namespace
DuetControlServer.Commands
Assembly
DuetControlServer.dll

Implementation of the QueryObjectModel command

public sealed class QueryObjectModel : QueryObjectModel
Inheritance
QueryObjectModel
Inherited Members

Constructors

QueryObjectModel(ObjectModel, Filter)

Implementation of the QueryObjectModel command

public QueryObjectModel(ObjectModel model, Filter filter)

Parameters

model ObjectModel

Object model

filter Filter

Filter for JSON queries

Methods

ExecuteAsync(CancellationToken)

Query the object model using a key and flags

public override Task<JsonElement> ExecuteAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Optional cancellation token

Returns

Task<JsonElement>

JSON response compatible with M409 format