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
transitionTransition<TLinkAddress>nameOnlyboolnamesIEnumerable<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
NameOnly
public bool NameOnly { get; }
Property Value
Names
public IReadOnlyList<NameChange<TLinkAddress>> Names { get; }
Property Value
- IReadOnlyList<NameChange<TLinkAddress>>
Sequence
public long Sequence { get; }
Property Value
Timestamp
public DateTimeOffset Timestamp { get; }
Property Value
TransactionId
public Guid TransactionId { get; }
Property Value
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
otherJournalRecord<TLinkAddress>An object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? other)
Parameters
otherobject
Returns
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
TryParse(string, out JournalRecord<TLinkAddress>)
public static bool TryParse(string text, out JournalRecord<TLinkAddress> record)
Parameters
textstringrecordJournalRecord<TLinkAddress>