mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
cc9c63c33e
I think it's fair to assume that the user wants to set this as a preference and it fixes #4592.
21 lines
636 B
C#
21 lines
636 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace BTCPayServer.Models
|
|
{
|
|
public abstract class BasePagingViewModel
|
|
{
|
|
public const int CountDefault = 50;
|
|
|
|
public int Skip { get; set; } = 0;
|
|
public int Count { get; set; } = CountDefault;
|
|
public int? Total { get; set; }
|
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
|
public string SearchTerm { get; set; }
|
|
public int? TimezoneOffset { get; set; }
|
|
public Dictionary<string, object> PaginationQuery { get; set; }
|
|
|
|
public abstract int CurrentPageCount { get; }
|
|
}
|
|
}
|