Table of Contents

Interface IModelCollection

Namespace
DuetAPI.ObjectModel
Assembly
DuetAPI.dll

Interface that all object model collections must implement

public interface IModelCollection : IStaticModelObject, IModelObject, ICloneable, INotifyPropertyChanged, INotifyCollectionChanged
Inherited Members

Methods

UpdateFromJson(JsonElement, bool, int, bool)

Update this collection from a given JSON array

void UpdateFromJson(JsonElement jsonElement, bool ignoreSbcProperties, int offset = 0, bool last = true)

Parameters

jsonElement JsonElement

Element to update this intance from

ignoreSbcProperties bool

Whether SBC properties are ignored

offset int

Index offset

last bool

Whether this is the last update

UpdateFromJsonReader(ref Utf8JsonReader, bool, int, bool)

Update this collection from a given JSON reader

void UpdateFromJsonReader(ref Utf8JsonReader reader, bool ignoreSbcProperties, int offset = 0, bool last = true)

Parameters

reader Utf8JsonReader

JSON reader

ignoreSbcProperties bool

Whether SBC properties are ignored

offset int

Index offset

last bool

Whether this is the last update