lightfinder support, context pairing

This commit is contained in:
2025-09-24 05:05:57 +09:00
parent a337481243
commit fd4cd52d2e
7 changed files with 67 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
using MessagePack;
namespace LightlessSync.API.Dto.User;
[MessagePackObject(keyAsPropertyName: true)]
public sealed class BroadcastStatusBatchDto
{
public Dictionary<string, BroadcastStatusInfoDto> Results { get; init; } = new();
}

View File

@@ -0,0 +1,12 @@
using MessagePack;
namespace LightlessSync.API.Dto.User;
[MessagePackObject(keyAsPropertyName: true)]
public sealed class BroadcastStatusInfoDto
{
public required string HashedCID { get; init; }
public required bool IsBroadcasting { get; init; }
public TimeSpan? TTL { get; init; }
public string? GID { get; init; }
}

View File

@@ -0,0 +1,12 @@
using MessagePack;
namespace LightlessSync.API.Dto.User;
[MessagePackObject(keyAsPropertyName: true)]
public sealed class BroadcastStatusRequestDto
{
public required string HashedCID { get; init; }
public required bool Enabled { get; init; }
public string? GID { get; init; }
}