mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 14:40:36 +01:00
* Allow disabling notifications per user and disabling specific notifications per use closes #1974 * Add disable notifs for all users * fix term generator for notifications * sow checkboxes instead of multiselect when js is enabled * remove js dependency * fix notif conditions
35 lines
799 B
C#
35 lines
799 B
C#
using System;
|
|
|
|
namespace BTCPayServer.Services.Notifications
|
|
{
|
|
public class AdminScope : NotificationScope
|
|
{
|
|
public AdminScope()
|
|
{
|
|
}
|
|
}
|
|
public class StoreScope : NotificationScope
|
|
{
|
|
public StoreScope(string storeId)
|
|
{
|
|
if (storeId == null)
|
|
throw new ArgumentNullException(nameof(storeId));
|
|
StoreId = storeId;
|
|
}
|
|
public string StoreId { get; }
|
|
}
|
|
public class UserScope : NotificationScope
|
|
{
|
|
public UserScope(string userId)
|
|
{
|
|
if (userId == null)
|
|
throw new ArgumentNullException(nameof(userId));
|
|
UserId = userId;
|
|
}
|
|
public string UserId { get; }
|
|
}
|
|
|
|
public interface NotificationScope
|
|
{
|
|
}
|
|
}
|