mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
* GreenField: Notifications API This refactors notifications so that we dont have a bunch of duplicated direct access to db contexts in controllers and then introduces new endpoints to fetch/toggle seen/remove notifications of the current user. * add tests + docs * fix test * pr changes * fix permission json
16 lines
424 B
C#
16 lines
424 B
C#
using System;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
{
|
|
public class NotificationData
|
|
{
|
|
public string Id { get; set; }
|
|
public string Body { get; set; }
|
|
public bool Seen { get; set; }
|
|
public Uri Link { get; set; }
|
|
|
|
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
|
public DateTimeOffset CreatedTime { get; set; }
|
|
}
|
|
}
|