Table of Contents

Class JournalRecord<TLinkAddress>

Namespace
Foundation.Data.Doublets.Cli
Assembly
Foundation.Data.Doublets.Cli.dll

Complete legacy journal payload. Row-only values retain the v1 codec.

public sealed class JournalRecord<TLinkAddress> : IEquatable<JournalRecord<TLinkAddress>> where TLinkAddress : IUnsignedNumber<TLinkAddress>

Type Parameters

TLinkAddress
Inheritance
JournalRecord<TLinkAddress>
Implements
IEquatable<JournalRecord<TLinkAddress>>
Inherited Members

Constructors

JournalRecord(Transition<TLinkAddress>, bool, IEnumerable<NameChange<TLinkAddress>>?)

public JournalRecord(Transition<TLinkAddress> transition, bool nameOnly = false, IEnumerable<NameChange<TLinkAddress>>? names = null)

Parameters

transition Transition<TLinkAddress>
nameOnly bool
names IEnumerable<NameChange<TLinkAddress>>

Properties

After

public Link<TLinkAddress> After { get; }

Property Value

Link<TLinkAddress>

Before

public Link<TLinkAddress> Before { get; }

Property Value

Link<TLinkAddress>

Kind

public TransitionKind Kind { get; }

Property Value

TransitionKind

NameOnly

public bool NameOnly { get; }

Property Value

bool

Names

public IReadOnlyList<NameChange<TLinkAddress>> Names { get; }

Property Value

IReadOnlyList<NameChange<TLinkAddress>>

Sequence

public long Sequence { get; }

Property Value

long

Timestamp

public DateTimeOffset Timestamp { get; }

Property Value

DateTimeOffset

TransactionId

public Guid TransactionId { get; }

Property Value

Guid

Transition

public Transition<TLinkAddress> Transition { get; }

Property Value

Transition<TLinkAddress>

Methods

Equals(JournalRecord<TLinkAddress>?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(JournalRecord<TLinkAddress>? other)

Parameters

other JournalRecord<TLinkAddress>

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? other)

Parameters

other object

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Serialize()

public string Serialize()

Returns

string

TryParse(string, out JournalRecord<TLinkAddress>)

public static bool TryParse(string text, out JournalRecord<TLinkAddress> record)

Parameters

text string
record JournalRecord<TLinkAddress>

Returns

bool