Class PaginationOptions
Query parameters for pagination service requests.
Namespace: Unity.Services.Friends.Options
Syntax
public class PaginationOptions : IOptions
Properties
Limit
Maximum records to return per pagination. The default value is 25.
Declaration
public int Limit { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Offset
Maximum offset for pagination. The default value is 0.
Declaration
public int Offset { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Methods
ErrorMessage()
Returns an error message indicating why the option is invalid.
Declaration
public string ErrorMessage()
Returns
| Type | Description |
|---|---|
| String | String representation of why the error is invalid |
Implements
IsValid()
Check if the option is valid.
Declaration
public bool IsValid()
Returns
| Type | Description |
|---|---|
| Boolean | Returns true when the options is valid. False otherwise. |