first commit

This commit is contained in:
2025-02-26 23:42:19 +01:00
commit 777ea98be1
283 changed files with 88266 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
using System.Text.Json;
using System.Text.Json.Serialization;
using Confluent.Kafka;
namespace Kafka.Lib.Auth;
public class LogOutMessageType : IMessageType
{
public List<string?>? Tokens { get; set; }
public string? UserName { get; set; }
public string? Id { get; set; }
public string EventType { get; init; } = "Logout";
[JsonIgnore]
public string Text
{
get => JsonSerializer.Serialize(this);
set
{
if (string.IsNullOrEmpty(value))
{
var obj = JsonSerializer.Deserialize<LogOutMessageType>(value);
if (obj != null)
{
Tokens = obj.Tokens;
UserName = obj.UserName;
Id = obj.Id;
}
}
}
}
}