Interface IStaticModelObject
- Namespace
- DuetAPI.ObjectModel
- Assembly
- DuetAPI.dll
Static interface for object model classes that have properties. Classes that implement this interface may not change its instance on update
public interface IStaticModelObject : IModelObject, ICloneable, INotifyPropertyChanged
- Inherited Members
Methods
Assign(IStaticModelObject)
Assign the properties from another instance. This is required to update model properties which do not have a setter
void Assign(IStaticModelObject from)
Parameters
fromIStaticModelObjectOther instance
UpdateFromJson(JsonElement, bool)
Update this instance from a given JSON element
void UpdateFromJson(JsonElement jsonElement, bool ignoreSbcProperties)
Parameters
jsonElementJsonElementElement to update this intance from
ignoreSbcPropertiesboolWhether SBC properties are ignored
Exceptions
- JsonException
Failed to deserialize data
UpdateFromJsonReader(ref Utf8JsonReader, bool)
Update this instance from a given JSON reader
void UpdateFromJsonReader(ref Utf8JsonReader reader, bool ignoreSbcProperties)
Parameters
readerUtf8JsonReaderJSON reader
ignoreSbcPropertiesboolWhether SBC properties are ignored
Exceptions
- JsonException
Failed to deserialize data