-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathIPublishedMessage.cs
41 lines (37 loc) · 1.03 KB
/
IPublishedMessage.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
39
40
41
using Ipfs.CoreApi;
using System;
using System.Collections.Generic;
using System.Text;
namespace Ipfs
{
/// <summary>
/// A published message.
/// </summary>
/// <remarks>
/// The <see cref="IPubSubApi"/> is used to publish and subsribe to a message.
/// </remarks>
public interface IPublishedMessage : IDataBlock
{
/// <summary>
/// The sender of the message.
/// </summary>
/// <value>
/// The peer that sent the message.
/// </value>
Peer Sender { get; }
/// <summary>
/// The topics of the message.
/// </summary>
/// <value>
/// All topics related to this message.
/// </value>
IEnumerable<string> Topics { get; }
/// <summary>
/// The sequence number of the message.
/// </summary>
/// <value>
/// A sender unique id for the message.
/// </value>
byte[] SequenceNumber { get; }
}
}