From f1817c597450bf2ee5425708b982a68916214e3a Mon Sep 17 00:00:00 2001 From: Tsubasahane Date: Sun, 28 Dec 2025 13:02:34 +0800 Subject: [PATCH] transfer LocationWithTimeDto --- .../Dto/User/{LocationDto.cs => LocationSharingDto.cs} | 5 ++++- LightlessSyncAPI/SignalR/ILightlessHub.cs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) rename LightlessSyncAPI/Dto/User/{LocationDto.cs => LocationSharingDto.cs} (65%) diff --git a/LightlessSyncAPI/Dto/User/LocationDto.cs b/LightlessSyncAPI/Dto/User/LocationSharingDto.cs similarity index 65% rename from LightlessSyncAPI/Dto/User/LocationDto.cs rename to LightlessSyncAPI/Dto/User/LocationSharingDto.cs index 9746297..57381c6 100644 --- a/LightlessSyncAPI/Dto/User/LocationDto.cs +++ b/LightlessSyncAPI/Dto/User/LocationSharingDto.cs @@ -6,4 +6,7 @@ namespace LightlessSync.API.Dto.User; [MessagePackObject(keyAsPropertyName: true)] -public record LocationDto(UserData User, LocationInfo Location); \ No newline at end of file +public record LocationDto(UserData User, LocationInfo Location); + +[MessagePackObject(keyAsPropertyName: true)] +public record LocationWithTimeDto(LocationDto Location, DateTimeOffset ExpireAt); \ No newline at end of file diff --git a/LightlessSyncAPI/SignalR/ILightlessHub.cs b/LightlessSyncAPI/SignalR/ILightlessHub.cs index ed00af4..f271969 100644 --- a/LightlessSyncAPI/SignalR/ILightlessHub.cs +++ b/LightlessSyncAPI/SignalR/ILightlessHub.cs @@ -118,7 +118,7 @@ public interface ILightlessHub Task SetChatParticipantMute(ChatParticipantMuteRequestDto request); Task UpdateLocation(LocationDto locationDto, bool offline); - Task> RequestAllLocationInfo(); + Task> RequestAllLocationInfo(); Task ToggleLocationSharing(LocationSharingToggleDto dto); }