🚚 Rename the Stream to Queue in internal code

This commit is contained in:
2025-12-25 19:11:39 +08:00
parent f792d43ab9
commit 0bc77b948c
13 changed files with 14 additions and 14 deletions

View File

@@ -0,0 +1,34 @@
using NodaTime;
namespace DysonNetwork.Shared.Queue;
public class WebSocketPacketEvent
{
public static string Type => "websocket_msg";
public const string SubjectPrefix = "websocket_";
public Guid AccountId { get; set; }
public string DeviceId { get; set; } = null!;
public byte[] PacketBytes { get; set; } = null!;
}
public class WebSocketConnectedEvent
{
public static string Type => "websocket_connected";
public Guid AccountId { get; set; }
public string DeviceId { get; set; } = null!;
public Instant ConnectedAt { get; set; } = SystemClock.Instance.GetCurrentInstant();
public bool IsOffline { get; set; } = false;
}
public class WebSocketDisconnectedEvent
{
public static string Type => "websocket_disconnected";
public Guid AccountId { get; set; }
public string DeviceId { get; set; } = null!;
public Instant DisconnectedAt { get; set; } = SystemClock.Instance.GetCurrentInstant();
public bool IsOffline { get; set; }
}