btcpayserver/BTCPayServer/Models/BasePagingViewModel.cs

19 lines
581 B
C#
Raw Normal View History

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