Class PaginationElementQueryStringValueExpression
- Namespace
- JsonApiDotNetCore.Queries.Expressions
- Assembly
- JsonApiDotNetCore.dll
Represents an element in PaginationQueryStringValueExpression, resulting from text such as: 1
, or:
articles:2
.
[PublicAPI]
public class PaginationElementQueryStringValueExpression : QueryExpression
- Inheritance
-
PaginationElementQueryStringValueExpression
- Inherited Members
Constructors
PaginationElementQueryStringValueExpression(ResourceFieldChainExpression?, int, int)
Represents an element in PaginationQueryStringValueExpression, resulting from text such as: 1
, or:
articles:2
.
public PaginationElementQueryStringValueExpression(ResourceFieldChainExpression? scope, int value, int position)
Parameters
scope
ResourceFieldChainExpressionvalue
intposition
int
Properties
Position
The zero-based position in the text of the query string parameter value.
public int Position { get; }
Property Value
Scope
The relationship this pagination applies to. Chain format: zero or more relationships, followed by a to-many relationship.
public ResourceFieldChainExpression? Scope { get; }
Property Value
Value
The numeric pagination value.
public int Value { get; }
Property Value
Methods
Accept<TArgument, TResult>(QueryExpressionVisitor<TArgument, TResult>, TArgument)
public override TResult Accept<TArgument, TResult>(QueryExpressionVisitor<TArgument, TResult> visitor, TArgument argument)
Parameters
visitor
QueryExpressionVisitor<TArgument, TResult>argument
TArgument
Returns
- TResult
Type Parameters
TArgument
TResult
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToFullString()
public override string ToFullString()
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.