Class PaginationProperties<T>
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
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
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
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builder
StringBuilder
Returns
ToString()
public override string ToString()
Returns
WithDirection(PaginationDirection?)
public PaginationProperties<T> WithDirection(PaginationDirection? direction)
Parameters
direction
PaginationDirection?
Returns
WithFrom(T?)
public PaginationProperties<T> WithFrom(T? from)
Parameters
from
T?
Returns
WithLimit(int?)
public PaginationProperties<T> WithLimit(int? limit)
Parameters
limit
int?
Returns
<Clone>$()
public virtual PaginationProperties<T> <Clone>$()
Returns
Operators
operator ==(PaginationProperties<T>?, PaginationProperties<T>?)
public static bool operator ==(PaginationProperties<T>? left, PaginationProperties<T>? right)
Parameters
left
PaginationProperties<T>right
PaginationProperties<T>
Returns
operator !=(PaginationProperties<T>?, PaginationProperties<T>?)
public static bool operator !=(PaginationProperties<T>? left, PaginationProperties<T>? right)
Parameters
left
PaginationProperties<T>right
PaginationProperties<T>