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,31 @@
using System.Text.Json;
namespace Kafka.Lib.Warehouse;
public class WarehouseChangeMessageType : IMessageType
{
public string? WarehouseId { get; set; }
public Dictionary<string, string> Changes { get; set; } = new();
public string? Id { get; set; }
public string? EventType { get; } = "WarehouseChange";
public string Text
{
get => JsonSerializer.Serialize(this);
set
{
if (string.IsNullOrEmpty(value))
{
var obj = JsonSerializer.Deserialize<WarehouseChangeMessageType>(value);
if (obj != null)
{
WarehouseId = obj.WarehouseId;
Changes = obj.Changes;
}
}
}
}
}