2020-06-28 21:44:35 -05:00
|
|
|
using System;
|
2020-06-15 16:45:29 +09:00
|
|
|
|
|
|
|
namespace BTCPayServer.Services.Notifications
|
|
|
|
{
|
|
|
|
public class AdminScope : NotificationScope
|
|
|
|
{
|
|
|
|
public AdminScope()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public class StoreScope : NotificationScope
|
|
|
|
{
|
|
|
|
public StoreScope(string storeId)
|
|
|
|
{
|
2021-12-28 17:39:54 +09:00
|
|
|
ArgumentNullException.ThrowIfNull(storeId);
|
2020-06-15 16:45:29 +09:00
|
|
|
StoreId = storeId;
|
|
|
|
}
|
|
|
|
public string StoreId { get; }
|
|
|
|
}
|
2020-10-20 13:09:09 +02:00
|
|
|
public class UserScope : NotificationScope
|
|
|
|
{
|
|
|
|
public UserScope(string userId)
|
|
|
|
{
|
2021-12-28 17:39:54 +09:00
|
|
|
ArgumentNullException.ThrowIfNull(userId);
|
2020-10-20 13:09:09 +02:00
|
|
|
UserId = userId;
|
|
|
|
}
|
|
|
|
public string UserId { get; }
|
|
|
|
}
|
2020-06-15 16:45:29 +09:00
|
|
|
|
|
|
|
public interface NotificationScope
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|