Skip to content

BH.oM.Diffing.Delta

Contains the Diff plus context information: parent Stream, Timestamp, etc.

Class structure

Implemented interfaces and base types

The Delta is inheriting from the following base type(s) and implements the following interfaces:

Properties

Defining properties

The following properties are defined on the class

Name Type Description Quantity
StreamID Guid The ID of the owning Stream. It must be the same for both the Revision that this Delta targets and the Revision that it will produce. -
Diff Diff Represent the differences between two sets of objects. -
RevisionFrom Guid Revision ID that this Delta targets. -
RevisionTo Guid Revision ID that this Delta produces. -
Timestamp long In UTC ticks. -
Author string Any descriptive string identifying either the Author and/or the software used. -
Comment string - -

Code and Schema

C# implementation

C#
public class Delta : BH.oM.Base.IObject, BH.oM.Base.IImmutable

Assembly: Diffing_oM.dll

The C# class definition is available on github:

All history and changes of the class can be found by inspection the history.

JSON Schema implementation

The object is defined as a JSON schema. You can validate a JSON instance against this schema by reference. To do this, use the schema reference below in a validator like this one.

JSON Schema
{
 "$ref" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/Diffing_oM/Delta.json"
}

The JSON Schema is available on github here: