Table of Contents

Struct ClientMessage

Namespace
Xabbo.Messages
Assembly
Xabbo.Common.dll

Defines information about a client message.

public readonly record struct ClientMessage : IEquatable<ClientMessage>
Implements
Inherited Members

Constructors

ClientMessage(ClientType, Direction, short, string)

Defines information about a client message.

public ClientMessage(ClientType Client, Direction Direction, short Header, string Name)

Parameters

Client ClientType
Direction Direction
Header short
Name string

Properties

Client

public ClientType Client { get; init; }

Property Value

ClientType

Direction

public Direction Direction { get; init; }

Property Value

Direction

Header

public short Header { get; init; }

Property Value

short

Name

public string Name { get; init; }

Property Value

string

Methods

Equals(ClientMessage)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(ClientMessage other)

Parameters

other ClientMessage

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

Operators

implicit operator ClientMessage((ClientType client, Direction dir, short header, string name))

public static implicit operator ClientMessage((ClientType client, Direction dir, short header, string name) x)

Parameters

x (ClientType client, Direction dir, short header, string name)

Returns

ClientMessage