Table of Contents

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

from IStaticModelObject

Other instance

UpdateFromJson(JsonElement, bool)

Update this instance from a given JSON element

void UpdateFromJson(JsonElement jsonElement, bool ignoreSbcProperties)

Parameters

jsonElement JsonElement

Element to update this intance from

ignoreSbcProperties bool

Whether 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

reader Utf8JsonReader

JSON reader

ignoreSbcProperties bool

Whether SBC properties are ignored

Exceptions

JsonException

Failed to deserialize data