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); }