Table of Contents

Class BaseMessage

Namespace
NLightning.Domain.Protocol.Messages
Assembly
NLightning.Domain.dll

Base class for a message.

public abstract class BaseMessage : IMessage
Inheritance
BaseMessage
Implements
Derived
Inherited Members

Constructors

BaseMessage(ushort)

protected BaseMessage(ushort type)

Parameters

type ushort

BaseMessage(ushort, IMessagePayload, TlvStream?)

protected BaseMessage(ushort type, IMessagePayload payload, TlvStream? extension = null)

Parameters

type ushort
payload IMessagePayload
extension TlvStream

Properties

Extension

The extension of the message, if any.

public TlvStream? Extension { get; protected init; }

Property Value

TlvStream

Payload

The payload of the message.

public virtual IMessagePayload Payload { get; protected init; }

Property Value

IMessagePayload

Type

The type of the message. MessageTypes.

public ushort Type { get; }

Property Value

ushort