Table of Contents

Class PaginationProperties<T>

Namespace
NetCord.Rest
Assembly
NetCord.dll
public record PaginationProperties<T> : IEquatable<PaginationProperties<T>> where T : struct

Type Parameters

T
Inheritance
PaginationProperties<T>
Implements
Derived
Inherited Members

Constructors

PaginationProperties()

public PaginationProperties()

PaginationProperties(PaginationProperties<T>)

protected PaginationProperties(PaginationProperties<T> original)

Parameters

original PaginationProperties<T>

Properties

Direction

The direction of pagination.

public PaginationDirection? Direction { get; set; }

Property Value

PaginationDirection?

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

From

The starting point for pagination.

public T? From { get; set; }

Property Value

T?

Limit

The number of items to download at once.

public int? Limit { get; set; }

Property Value

int?

Methods

Equals(PaginationProperties<T>?)

public virtual bool Equals(PaginationProperties<T>? other)

Parameters

other PaginationProperties<T>

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

WithDirection(PaginationDirection?)

public PaginationProperties<T> WithDirection(PaginationDirection? direction)

Parameters

direction PaginationDirection?

Returns

PaginationProperties<T>

WithFrom(T?)

public PaginationProperties<T> WithFrom(T? from)

Parameters

from T?

Returns

PaginationProperties<T>

WithLimit(int?)

public PaginationProperties<T> WithLimit(int? limit)

Parameters

limit int?

Returns

PaginationProperties<T>

<Clone>$()

public virtual PaginationProperties<T> <Clone>$()

Returns

PaginationProperties<T>

Operators

operator ==(PaginationProperties<T>?, PaginationProperties<T>?)

public static bool operator ==(PaginationProperties<T>? left, PaginationProperties<T>? right)

Parameters

left PaginationProperties<T>
right PaginationProperties<T>

Returns

bool

operator !=(PaginationProperties<T>?, PaginationProperties<T>?)

public static bool operator !=(PaginationProperties<T>? left, PaginationProperties<T>? right)

Parameters

left PaginationProperties<T>
right PaginationProperties<T>

Returns

bool