Class SBC
- Namespace
- DuetAPI.ObjectModel
- Assembly
- DuetAPI.dll
Information about the SBC in SBC mode
public class SBC : ModelObject, INotifyPropertyChanging, IStaticModelObject, IModelObject, ICloneable, INotifyPropertyChanged
- Inheritance
-
SBC
- Implements
- Inherited Members
Constructors
SBC()
public SBC()
Properties
AppArmor
Indicates if AppArmor support is enabled
public bool AppArmor { get; set; }
Property Value
Remarks
By default, AppArmor is required for plugin functionality
CPU
Information about the SBC's CPU
public CPU CPU { get; }
Property Value
DSF
Information about DSF running on the SBC
public DSF DSF { get; }
Property Value
Distribution
Name and version of the system distribution or null if unknown
public string? Distribution { get; set; }
Property Value
DistributionBuildTime
Build datetime of the system distribution or null if unknown
[JsonConverter(typeof(JsonOptionalShortDateTimeConverter))]
public DateTime? DistributionBuildTime { get; set; }
Property Value
Memory
Information about the SBC's memory (RAM)
public Memory Memory { get; }
Property Value
Model
SBC model or null if unknown
public string? Model { get; set; }
Property Value
Serial
Serial of the SBC or null if unknown
public string? Serial { get; set; }
Property Value
Uptime
Uptime of the running system (in s)
public double? Uptime { 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 void Assign(IStaticModelObject from)
Parameters
fromIStaticModelObjectOther instance
Clone()
Clone this instance
public object Clone()
Returns
- object
Cloned instance
Remarks
This method is auto-generated
UpdateFromJson(JsonElement, bool)
Update this instance from a given JSON element
public 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 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