Show / Hide Table of Contents

Class PublishedMessage

A published message.

Inheritance
Object
PublishedMessage
Implements
IPublishedMessage
IDataBlock
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Ipfs.Http
Assembly: Ipfs.Http.Client.dll
Syntax
[DataContract]
public class PublishedMessage : IPublishedMessage, IDataBlock
Remarks

The Ipfs.Http.PubSubApi is used to publish and subsribe to a message.

Constructors

| Improve this Doc View Source

PublishedMessage(String)

Creates a new instance of PublishedMessage from the specified JSON string.

Declaration
public PublishedMessage(string json)
Parameters
Type Name Description
String json

The JSON representation of a published message.

Properties

| Improve this Doc View Source

DataBytes

Declaration
[DataMember]
public byte[] DataBytes { get; }
Property Value
Type Description
Byte[]
| Improve this Doc View Source

DataStream

Declaration
public Stream DataStream { get; }
Property Value
Type Description
Stream
| Improve this Doc View Source

DataString

Contents as a string.

Declaration
public string DataString { get; }
Property Value
Type Description
String

The contents interpreted as a UTF-8 string.

| Improve this Doc View Source

Id

> NOT SUPPORTED.

Declaration
public Cid Id { get; }
Property Value
Type Description
Cid
Exceptions
Type Condition
NotSupportedException

A published message does not have a content id.

| Improve this Doc View Source

Sender

Declaration
[DataMember]
public Peer Sender { get; }
Property Value
Type Description
Peer
| Improve this Doc View Source

SequenceNumber

Declaration
[DataMember]
public byte[] SequenceNumber { get; }
Property Value
Type Description
Byte[]
| Improve this Doc View Source

Size

Declaration
[DataMember]
public long Size { get; }
Property Value
Type Description
Int64
| Improve this Doc View Source

Topics

Declaration
[DataMember]
public IEnumerable<string> Topics { get; }
Property Value
Type Description
IEnumerable<String>

Implements

IPublishedMessage
IDataBlock
  • Improve this Doc
  • View Source
Back to top Generated by DocFX