Skip to content

Commit

Permalink
Merge pull request #84 from drasticactions/develop
Browse files Browse the repository at this point in the history
Codeflow to Main
  • Loading branch information
drasticactions authored Nov 5, 2024
2 parents 4261500 + c9a881a commit 8552f38
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/FishyFlip/Models/FrameCommit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<long>();
this.Blocks = obj["blocks"]?.GetByteString();
#pragma warning disable CS0618
this.Prev = obj["prev"]?.ToATCid(logger);
Expand All @@ -40,7 +40,7 @@ public FrameCommit(CBORObject obj, ILogger? logger = default)
/// <summary>
/// Gets the sequence.
/// </summary>
public int Seq { get; }
public long Seq { get; }

/// <summary>
/// Gets the handle.
Expand Down
4 changes: 2 additions & 2 deletions src/FishyFlip/Models/FrameHandle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<long>();
this.Handle = obj["handle"]?.AsString();
this.Time = obj["time"] is not null ? obj["time"].ToDateTime() : null;
}
Expand All @@ -29,7 +29,7 @@ public FrameHandle(CBORObject obj)
/// <summary>
/// Gets the sequence number of the frame handle.
/// </summary>
public int Seq { get; }
public long Seq { get; }

/// <summary>
/// Gets the handle string of the frame handle.
Expand Down
4 changes: 2 additions & 2 deletions src/FishyFlip/Models/FrameMigrate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<long>();
this.MigrateTo = obj["migrateTo"]?.AsString();
this.Time = obj["time"] is not null ? obj["time"].ToDateTime() : null;
}
Expand All @@ -29,7 +29,7 @@ public FrameMigrate(CBORObject obj)
/// <summary>
/// Gets the sequence number of the frame migration.
/// </summary>
public int Seq { get; }
public long Seq { get; }

/// <summary>
/// Gets the migration destination of the frame.
Expand Down
4 changes: 2 additions & 2 deletions src/FishyFlip/Models/FrameTombstone.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<long>();
this.Time = obj["time"] is not null ? obj["time"].ToDateTime() : null;
}

Expand All @@ -28,7 +28,7 @@ public FrameTombstone(CBORObject obj)
/// <summary>
/// Gets the sequence number of the frame.
/// </summary>
public int Seq { get; }
public long Seq { get; }

/// <summary>
/// Gets the timestamp of the tombstone.
Expand Down

0 comments on commit 8552f38

Please sign in to comment.