Class FilamentMonitor
Information about a filament monitor
Inherited Members
Namespace: DuetAPI.ObjectModel
Assembly: DuetAPI.dll
Syntax
public class FilamentMonitor : ModelObject, IModelObject, ICloneable, INotifyPropertyChanged, INotifyPropertyChangingProperties
EnableMode
Enable mode of this filament monitor
Declaration
public FilamentMonitorEnableMode EnableMode { get; set; }Property Value
| Type | Description | 
|---|---|
| FilamentMonitorEnableMode | 
Enabled
Indicates if this filament monitor is enabled
Declaration
[Obsolete("Use EnableMode instead")]
public bool Enabled { get; set; }Property Value
| Type | Description | 
|---|---|
| bool | 
Status
Last reported status of this filament monitor
Declaration
public FilamentMonitorStatus Status { get; set; }Property Value
| Type | Description | 
|---|---|
| FilamentMonitorStatus | 
Type
Type of this filament monitor
Declaration
public FilamentMonitorType Type { get; protected set; }Property Value
| Type | Description | 
|---|---|
| FilamentMonitorType | 
Methods
UpdateFromJson(JsonElement, bool)
Update this instance from a given JSON element
Declaration
public override IModelObject? UpdateFromJson(JsonElement jsonElement, bool ignoreSbcProperties)Parameters
| Type | Name | Description | 
|---|---|---|
| JsonElement | jsonElement | Element to update this intance from | 
| bool | ignoreSbcProperties | Whether SBC properties are ignored | 
Returns
| Type | Description | 
|---|---|
| IModelObject | Updated instance | 
Overrides
Exceptions
| Type | Condition | 
|---|---|
| JsonException | Failed to deserialize data |