RunicCollectionChange record

Namespace Runic.Application.Testing in Runic.Application.Testing 0.23.0

public sealed record RunicCollectionChange : IEquatable<RunicCollectionChange>

Inherits or implements IEquatable.

One keyed collection edit of a delta frame.

Parameters

Field

The collection's wire name.

Kind

The edit.

Index

Where the rows are added, removed, replaced or moved to.

OldIndex

Where moved or replaced rows were.

Keys

The keys of the added rows, or of the rows before the edit.

Items

The added or replacement rows.

Constructors

RunicCollectionChange

public RunicCollectionChange(string Field, RunicCollectionChangeKind Kind, int Index, int OldIndex, IReadOnlyList<string> Keys, IReadOnlyList<JsonElement> Items)

One keyed collection edit of a delta frame.

Parameters

Field

The collection's wire name.

Kind

The edit.

Index

Where the rows are added, removed, replaced or moved to.

OldIndex

Where moved or replaced rows were.

Keys

The keys of the added rows, or of the rows before the edit.

Items

The added or replacement rows.

Properties

Field

public string Field { get; init; }

The collection's wire name.

Index

public int Index { get; init; }

Where the rows are added, removed, replaced or moved to.

Items

public IReadOnlyList<JsonElement> Items { get; init; }

The added or replacement rows.

Keys

public IReadOnlyList<string> Keys { get; init; }

The keys of the added rows, or of the rows before the edit.

Kind

public RunicCollectionChangeKind Kind { get; init; }

The edit.

OldIndex

public int OldIndex { get; init; }

Where moved or replaced rows were.