Table of Contents

Interface IMessage

Namespace
NLightning.Bolts.Interfaces
Assembly
NLightning.Bolts.dll

Interface for a message.

public interface IMessage

Properties

Extension

The extension of the message, if any.

TlvStream? Extension { get; }

Property Value

TlvStream

Payload

The payload of the message.

IMessagePayload Payload { get; }

Property Value

IMessagePayload

Type

The type of the message. MessageTypes.

ushort Type { get; }

Property Value

ushort

Methods

SerializeAsync(Stream)

Serialize the message to a stream.

Task SerializeAsync(Stream stream)

Parameters

stream Stream

The stream to serialize to.

Returns

Task

A task that represents the asynchronous operation.