-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from ipfs-shipyard/release/0.6.0
Release/0.6.0: API cleanup, Filestore support, WebRTC-Direct support
- Loading branch information
Showing
21 changed files
with
680 additions
and
771 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,19 @@ | ||
using System.Runtime.Serialization; | ||
using System.Runtime.Serialization; | ||
using Newtonsoft.Json; | ||
|
||
namespace Ipfs.Http | ||
{ | ||
/// <inheritdoc /> | ||
[DataContract] | ||
public class Block : IDataBlock | ||
public record Block : IBlockStat | ||
{ | ||
/// <summary> | ||
/// The data of the block. | ||
/// </summary> | ||
public byte[] DataBytes { get; set; } | ||
|
||
/// <inheritdoc /> | ||
[DataMember] | ||
[JsonProperty("Key")] | ||
public required Cid Id { get; set; } | ||
|
||
/// <inheritdoc /> | ||
[DataMember] | ||
public required long Size { get; set; } | ||
public required int Size { get; set; } | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.