Table of Contents

Struct Identifier

Namespace
Xabbo.Messages
Assembly
Xabbo.Common.dll

Represents a client type, direction, and message name.

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

Remarks

Used to associate a message name with a Header that is resolved at runtime.

Constructors

Identifier()

public Identifier()

Identifier(ClientType, Direction, string)

Represents a client type, direction, and message name.

public Identifier(ClientType Client, Direction Direction, string Name)

Parameters

Client ClientType
Direction Direction
Name string

Remarks

Used to associate a message name with a Header that is resolved at runtime.

Fields

Unknown

public static readonly Identifier Unknown

Field Value

Identifier

Properties

Client

public ClientType Client { get; init; }

Property Value

ClientType

Direction

public Direction Direction { get; init; }

Property Value

Direction

Name

public string Name { get; init; }

Property Value

string

Methods

Equals(Identifier)

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

public bool Equals(Identifier other)

Parameters

other Identifier

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.

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

ToString(bool)

public string ToString(bool includeDirection)

Parameters

includeDirection bool

Returns

string

Operators

implicit operator Identifier((ClientType client, Direction direction, string name))

public static implicit operator Identifier((ClientType client, Direction direction, string name) x)

Parameters

x (ClientType client, Direction direction, string name)

Returns

Identifier

implicit operator Identifier((Direction direction, string name))

public static implicit operator Identifier((Direction direction, string name) x)

Parameters

x (Direction direction, string name)

Returns

Identifier

implicit operator ReadOnlySpan<Identifier>(in Identifier)

public static implicit operator ReadOnlySpan<Identifier>(in Identifier identifier)

Parameters

identifier Identifier

Returns

ReadOnlySpan<Identifier>