Viewer counts / start time

This commit is contained in:
2023-07-06 12:58:47 +01:00
parent 2592c824ff
commit 13f788a311
6 changed files with 144 additions and 6 deletions

View File

@ -1,3 +1,5 @@
using Newtonsoft.Json;
using Nostr.Client.Json;
using Nostr.Client.Messages;
using NostrStreamer.Database;
@ -5,4 +7,8 @@ namespace NostrStreamer;
public static class Extensions
{
public static NostrEvent? GetNostrEvent(this User user)
{
return user.Event != default ? JsonConvert.DeserializeObject<NostrEvent>(user.Event, NostrSerializer.Settings) : null;
}
}