Table of Contents

Class Route

Namespace
NetCord.Rest.RateLimits
Assembly
NetCord.dll
public record Route : IEquatable<Route>
Inheritance
Route
Implements
Inherited Members

Constructors

Route(Route)

protected Route(Route original)

Parameters

original Route

Route(HttpMethod, string, TopLevelResourceInfo?)

public Route(HttpMethod method, string endPoint, TopLevelResourceInfo? resourceInfo = null)

Parameters

method HttpMethod
endPoint string
resourceInfo TopLevelResourceInfo?

Properties

EndPoint

public string EndPoint { get; }

Property Value

string

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Method

public HttpMethod Method { get; }

Property Value

HttpMethod

ResourceInfo

public TopLevelResourceInfo? ResourceInfo { get; }

Property Value

TopLevelResourceInfo?

Methods

Equals(Route?)

public virtual bool Equals(Route? other)

Parameters

other Route

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

<Clone>$()

public virtual Route <Clone>$()

Returns

Route

Operators

operator ==(Route?, Route?)

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

Parameters

left Route
right Route

Returns

bool

operator !=(Route?, Route?)

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

Parameters

left Route
right Route

Returns

bool