Skip to main content

CkModelChange

Namespace: Meshmakers.Octo.ConstructionKit.Contracts.SemVer

A single typed structural change between two compiled construction kit models (baseline = last published version, current = locally compiled model).

public record CkModelChange : IEquatable<CkModelChange>

Inheritance Object → CkModelChange
Implements IEquatable<CkModelChange>

Properties​

ChangeKind​

The kind of change (added, removed, modified).

public CkModelChangeKind ChangeKind { get; set; }

Property Value​

CkModelChangeKind

ElementKind​

The kind of element the change refers to.

public CkModelElementKind ElementKind { get; set; }

Property Value​

CkModelElementKind

ElementId​

The id (path) of the changed element, e.g. Machine-1 for a type or Machine-1/SerialNumber for an attribute assignment on a type.

public string ElementId { get; set; }

Property Value​

String

Property​

For CkModelChangeKind.Modified changes the name of the property that changed (camelCase as written in the model YAML, e.g. valueType); otherwise null.

public string Property { get; set; }

Property Value​

String

OldValue​

Rendered old value (baseline model); null when not applicable.

public string OldValue { get; set; }

Property Value​

String

NewValue​

Rendered new value (current model); null when not applicable.

public string NewValue { get; set; }

Property Value​

String

Constructors​

CkModelChange()​

Caution​

Constructors of types with required members are not supported in this version of your compiler.


public CkModelChange()