btcpayserver/BTCPayServer/Extensions/UserPrefsCookie.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

29 lines
890 B
C#

namespace BTCPayServer
{
public class UserPrefsCookie
{
public ListQueryDataHolder InvoicesQuery { get; set; }
public ListQueryDataHolder PaymentRequestsQuery { get; set; }
public ListQueryDataHolder UsersQuery { get; set; }
public ListQueryDataHolder PayoutsQuery { get; set; }
public ListQueryDataHolder PullPaymentsQuery { get; set; }
public string CurrentStoreId { get; set; }
}
public class ListQueryDataHolder
{
public ListQueryDataHolder() { }
public ListQueryDataHolder(string searchTerm, int? timezoneOffset, int? count)
{
SearchTerm = searchTerm;
TimezoneOffset = timezoneOffset;
Count = count;
}
public int? TimezoneOffset { get; set; }
public string SearchTerm { get; set; }
public int? Count { get; set; }
}
}