2020-12-12 07:21:37 +01:00
|
|
|
using System.Collections.Generic;
|
2020-07-30 16:10:10 +02:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
2020-07-20 00:04:29 +02:00
|
|
|
|
|
|
|
namespace BTCPayServer.Models
|
|
|
|
{
|
2020-07-30 16:10:10 +02:00
|
|
|
public abstract class BasePagingViewModel
|
2020-07-20 00:04:29 +02:00
|
|
|
{
|
2020-07-30 16:10:10 +02:00
|
|
|
public int Skip { get; set; } = 0;
|
|
|
|
public int Count { get; set; } = 50;
|
2022-05-02 09:35:28 +02:00
|
|
|
public int? Total { get; set; }
|
2020-07-30 16:10:10 +02:00
|
|
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
2020-07-20 00:04:29 +02:00
|
|
|
public string SearchTerm { get; set; }
|
|
|
|
public int? TimezoneOffset { get; set; }
|
2020-12-12 07:21:37 +01:00
|
|
|
public Dictionary<string, object> PaginationQuery { get; set; }
|
2022-05-02 09:35:28 +02:00
|
|
|
|
|
|
|
public abstract int CurrentPageCount { get; }
|
2020-07-20 00:04:29 +02:00
|
|
|
}
|
|
|
|
}
|