From 6c542c0ccca0327896ef895f9de02a76869ea311 Mon Sep 17 00:00:00 2001 From: azyges <229218900+azyges@users.noreply.github.com> Date: Thu, 2 Oct 2025 09:16:40 +0900 Subject: [PATCH] pair notification method + dto --- LightlessSyncAPI/Dto/User/UserPairNotificationDto.cs | 10 ++++++++++ LightlessSyncAPI/SignalR/ILightlessHub.cs | 1 + 2 files changed, 11 insertions(+) create mode 100644 LightlessSyncAPI/Dto/User/UserPairNotificationDto.cs diff --git a/LightlessSyncAPI/Dto/User/UserPairNotificationDto.cs b/LightlessSyncAPI/Dto/User/UserPairNotificationDto.cs new file mode 100644 index 0000000..8cf52a4 --- /dev/null +++ b/LightlessSyncAPI/Dto/User/UserPairNotificationDto.cs @@ -0,0 +1,10 @@ +using MessagePack; + +namespace LightlessSync.API.Dto.User; + +[MessagePackObject(keyAsPropertyName: true)] +public sealed class UserPairNotificationDto +{ + public required string myHashedCid { get; init; } + public required string message { get; init; } +} \ No newline at end of file diff --git a/LightlessSyncAPI/SignalR/ILightlessHub.cs b/LightlessSyncAPI/SignalR/ILightlessHub.cs index eddca39..e96513c 100644 --- a/LightlessSyncAPI/SignalR/ILightlessHub.cs +++ b/LightlessSyncAPI/SignalR/ILightlessHub.cs @@ -24,6 +24,7 @@ public interface ILightlessHub Task Client_GroupSendProfile (GroupProfileDto groupInfo); Task Client_GroupSendInfo(GroupInfoDto groupInfo); Task Client_ReceiveServerMessage(MessageSeverity messageSeverity, string message); + Task Client_ReceiveBroadcastPairRequest(UserPairNotificationDto dto); Task Client_UpdateSystemInfo(SystemInfoDto systemInfo); Task Client_UserAddClientPair(UserPairDto dto); Task Client_UserReceiveCharacterData(OnlineUserCharaDataDto dataDto);