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
@@ -0,0 +1,33 @@
using System.Text.Json;
using System.Text.Json.Serialization;
namespace Kafka.Lib.Auth;
public class TokenValidationMessageType : IMessageType
{
public string? Token { get; set; }
public string? Mess { get; set; }
public string? Id { get; set; }
public string? EventType { get; } = "TokenNotValid";
[JsonIgnore]
public string Text
{
get => JsonSerializer.Serialize(this);
set
{
if (!string.IsNullOrWhiteSpace(value))
{
var obj = JsonSerializer.Deserialize<TokenValidationMessageType>(value);
if (obj != null)
{
Token = obj.Token;
Mess = obj.Mess;
}
}
}
}
}