Class Plugin
- Namespace
- DuetAPI.ObjectModel
- Assembly
- DuetAPI.dll
Class representing a loaded plugin
public class Plugin : PluginManifest, INotifyPropertyChanging, IStaticModelObject, IModelObject, ICloneable, INotifyPropertyChanged
- Inheritance
-
Plugin
- Implements
- Inherited Members
Constructors
Plugin()
public Plugin()
Properties
DsfFiles
List of files for the DSF plugin
public ObservableCollection<string> DsfFiles { get; }
Property Value
DwcFiles
List of files for the DWC plugin
public ObservableCollection<string> DwcFiles { get; }
Property Value
Pid
Process ID of the plugin or -1 if not started. It is set to 0 while the plugin is being shut down
public int Pid { get; set; }
Property Value
SdFiles
List of files to be installed to the (virtual) SD excluding web files
public ObservableCollection<string> SdFiles { get; }
Property Value
Started
Indicates if the plugin is fully started
public bool Started { get; set; }
Property Value
Methods
Assign(IStaticModelObject)
Assign the properties from another instance. This is required to update model properties which do not have a setter
public override void Assign(IStaticModelObject from)
Parameters
fromIStaticModelObjectOther instance
Clone()
Clone this instance
public override object Clone()
Returns
- object
Cloned instance
Remarks
This method is auto-generated
UpdateFromJson(JsonElement, bool)
Update this instance from a given JSON element
public override void UpdateFromJson(JsonElement jsonElement, bool ignoreSbcProperties)
Parameters
jsonElementJsonElementElement to update this intance from
ignoreSbcPropertiesboolWhether SBC properties are ignored
Remarks
This method is auto-generated
Exceptions
- JsonException
Failed to deserialize data
UpdateFromJsonReader(ref Utf8JsonReader, bool)
Update this instance from a given JSON element
public override void UpdateFromJsonReader(ref Utf8JsonReader reader, bool ignoreSbcProperties)
Parameters
readerUtf8JsonReaderReader to update this intance from
ignoreSbcPropertiesboolWhether SBC properties are ignored
Remarks
This method is auto-generated
Exceptions
- JsonException
Failed to deserialize data