-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathIMerkleLink.cs
38 lines (33 loc) · 942 Bytes
/
IMerkleLink.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
namespace Ipfs
{
/// <summary>
/// A link to another node in IPFS.
/// </summary>
public interface IMerkleLink
{
/// <summary>
/// A name associated with the linked node.
/// </summary>
/// <value>A <see cref="string"/> or <b>null</b>.</value>
/// <remarks>
/// <note type="warning">
/// IPFS considers a <b>null</b> name different from a <see cref="string.Empty"/>
/// name;
/// </note>
/// </remarks>
string Name { get; }
/// <summary>
/// The unique ID of the link.
/// </summary>
/// <value>
/// A <see cref="Cid"/> of the content.
/// </value>
Cid Id { get; }
/// <summary>
/// The serialised size (in bytes) of the linked node.
/// </summary>
/// <value>Number of bytes.</value>
long Size { get; }
}
}