diff --git a/src/FishyFlip/Models/FrameCommit.cs b/src/FishyFlip/Models/FrameCommit.cs index c90c73dd..2391ca0a 100644 --- a/src/FishyFlip/Models/FrameCommit.cs +++ b/src/FishyFlip/Models/FrameCommit.cs @@ -17,7 +17,7 @@ public class FrameCommit public FrameCommit(CBORObject obj, ILogger? logger = default) { this.Ops = obj["ops"]?.Values.Select(n => new Ops(n)).ToArray(); - this.Seq = obj["seq"].AsInt32(); + this.Seq = obj["seq"].ToObject(); this.Blocks = obj["blocks"]?.GetByteString(); #pragma warning disable CS0618 this.Prev = obj["prev"]?.ToATCid(logger); @@ -40,7 +40,7 @@ public FrameCommit(CBORObject obj, ILogger? logger = default) /// /// Gets the sequence. /// - public int Seq { get; } + public long Seq { get; } /// /// Gets the handle. diff --git a/src/FishyFlip/Models/FrameHandle.cs b/src/FishyFlip/Models/FrameHandle.cs index 9a419740..88cfe57e 100644 --- a/src/FishyFlip/Models/FrameHandle.cs +++ b/src/FishyFlip/Models/FrameHandle.cs @@ -16,7 +16,7 @@ public class FrameHandle public FrameHandle(CBORObject obj) { this.Did = obj["did"] is not null ? ATDid.Create(obj["did"].AsString()) : null; - this.Seq = obj["seq"].AsInt32(); + this.Seq = obj["seq"].ToObject(); this.Handle = obj["handle"]?.AsString(); this.Time = obj["time"] is not null ? obj["time"].ToDateTime() : null; } @@ -29,7 +29,7 @@ public FrameHandle(CBORObject obj) /// /// Gets the sequence number of the frame handle. /// - public int Seq { get; } + public long Seq { get; } /// /// Gets the handle string of the frame handle. diff --git a/src/FishyFlip/Models/FrameMigrate.cs b/src/FishyFlip/Models/FrameMigrate.cs index 1117d703..ad5109d9 100644 --- a/src/FishyFlip/Models/FrameMigrate.cs +++ b/src/FishyFlip/Models/FrameMigrate.cs @@ -16,7 +16,7 @@ public class FrameMigrate public FrameMigrate(CBORObject obj) { this.Did = obj["did"] is not null ? ATDid.Create(obj["did"].AsString()) : null; - this.Seq = obj["seq"].AsInt32(); + this.Seq = obj["seq"].ToObject(); this.MigrateTo = obj["migrateTo"]?.AsString(); this.Time = obj["time"] is not null ? obj["time"].ToDateTime() : null; } @@ -29,7 +29,7 @@ public FrameMigrate(CBORObject obj) /// /// Gets the sequence number of the frame migration. /// - public int Seq { get; } + public long Seq { get; } /// /// Gets the migration destination of the frame. diff --git a/src/FishyFlip/Models/FrameTombstone.cs b/src/FishyFlip/Models/FrameTombstone.cs index bdeefa18..93a078e2 100644 --- a/src/FishyFlip/Models/FrameTombstone.cs +++ b/src/FishyFlip/Models/FrameTombstone.cs @@ -16,7 +16,7 @@ public class FrameTombstone public FrameTombstone(CBORObject obj) { this.Did = obj["did"] is not null ? ATDid.Create(obj["did"].AsString()) : null; - this.Seq = obj["seq"].AsInt32(); + this.Seq = obj["seq"].ToObject(); this.Time = obj["time"] is not null ? obj["time"].ToDateTime() : null; } @@ -28,7 +28,7 @@ public FrameTombstone(CBORObject obj) /// /// Gets the sequence number of the frame. /// - public int Seq { get; } + public long Seq { get; } /// /// Gets the timestamp of the tombstone.