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
ushortpayload
IMessagePayloadextension
TlvStream
Properties
Extension
The extension of the message, if any.
public TlvStream? Extension { get; protected init; }
Property Value
Payload
The payload of the message.
public virtual IMessagePayload Payload { get; protected init; }
Property Value
Type
The type of the message. MessageTypes.
public ushort Type { get; }