Table of Contents

Class WebSocketPayloadProperties

Namespace
NetCord.Gateway
Assembly
NetCord.dll
public record WebSocketPayloadProperties : IEquatable<WebSocketPayloadProperties>
Inheritance
WebSocketPayloadProperties
Implements
Inherited Members

Constructors

WebSocketPayloadProperties()

public WebSocketPayloadProperties()

WebSocketPayloadProperties(WebSocketPayloadProperties)

protected WebSocketPayloadProperties(WebSocketPayloadProperties original)

Parameters

original WebSocketPayloadProperties

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

MessageFlags

public WebSocketMessageFlags MessageFlags { get; set; }

Property Value

WebSocketMessageFlags

MessageType

public WebSocketMessageType MessageType { get; set; }

Property Value

WebSocketMessageType

RetryHandling

public WebSocketRetryHandling RetryHandling { get; set; }

Property Value

WebSocketRetryHandling

Methods

Equals(WebSocketPayloadProperties?)

public virtual bool Equals(WebSocketPayloadProperties? other)

Parameters

other WebSocketPayloadProperties

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

WithMessageFlags(WebSocketMessageFlags)

public WebSocketPayloadProperties WithMessageFlags(WebSocketMessageFlags messageFlags)

Parameters

messageFlags WebSocketMessageFlags

Returns

WebSocketPayloadProperties

WithMessageType(WebSocketMessageType)

public WebSocketPayloadProperties WithMessageType(WebSocketMessageType messageType)

Parameters

messageType WebSocketMessageType

Returns

WebSocketPayloadProperties

WithRetryHandling(WebSocketRetryHandling)

public WebSocketPayloadProperties WithRetryHandling(WebSocketRetryHandling retryHandling)

Parameters

retryHandling WebSocketRetryHandling

Returns

WebSocketPayloadProperties

<Clone>$()

public virtual WebSocketPayloadProperties <Clone>$()

Returns

WebSocketPayloadProperties

Operators

operator ==(WebSocketPayloadProperties?, WebSocketPayloadProperties?)

public static bool operator ==(WebSocketPayloadProperties? left, WebSocketPayloadProperties? right)

Parameters

left WebSocketPayloadProperties
right WebSocketPayloadProperties

Returns

bool

operator !=(WebSocketPayloadProperties?, WebSocketPayloadProperties?)

public static bool operator !=(WebSocketPayloadProperties? left, WebSocketPayloadProperties? right)

Parameters

left WebSocketPayloadProperties
right WebSocketPayloadProperties

Returns

bool