btcpayserver/BTCPayServer/Models/BasePagingViewModel.cs
d11n cc9c63c33e
Add list count to user preferences cookie (#4637)
I think it's fair to assume that the user wants to set this as a preference and it fixes #4592.
2023-02-15 11:04:17 +09:00

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; }
}
}