From 367c603bf1fc22f270188469a83d50465a402e6c Mon Sep 17 00:00:00 2001 From: shaed-parkar <41630528+shaed-parkar@users.noreply.github.com> Date: Mon, 24 Feb 2025 14:18:26 +0000 Subject: [PATCH] VIH-11301 add conference object to UpdatedAllocationDto.cs (#2378) --- VideoWeb/VideoWeb.EventHub/Models/UpdatedAllocationDto.cs | 2 ++ .../Mappings/ConferenceDetailsToUpdatedAllocationDtoMapper.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/VideoWeb/VideoWeb.EventHub/Models/UpdatedAllocationDto.cs b/VideoWeb/VideoWeb.EventHub/Models/UpdatedAllocationDto.cs index a48582b9fe..310a7c278b 100644 --- a/VideoWeb/VideoWeb.EventHub/Models/UpdatedAllocationDto.cs +++ b/VideoWeb/VideoWeb.EventHub/Models/UpdatedAllocationDto.cs @@ -1,9 +1,11 @@ using System; +using VideoWeb.Contract.Responses; namespace VideoWeb.EventHub.Models; public record UpdatedAllocationDto( Guid ConferenceId, + ConferenceResponse Conference, DateTime ScheduledDateTime, string CaseName, string JudgeDisplayName, diff --git a/VideoWeb/VideoWeb/Mappings/ConferenceDetailsToUpdatedAllocationDtoMapper.cs b/VideoWeb/VideoWeb/Mappings/ConferenceDetailsToUpdatedAllocationDtoMapper.cs index eab38b7d07..b4be524d83 100644 --- a/VideoWeb/VideoWeb/Mappings/ConferenceDetailsToUpdatedAllocationDtoMapper.cs +++ b/VideoWeb/VideoWeb/Mappings/ConferenceDetailsToUpdatedAllocationDtoMapper.cs @@ -7,7 +7,7 @@ public static class ConferenceDetailsToUpdatedAllocationDtoMapper { public static UpdatedAllocationDto MapToUpdatedAllocationDto(Conference conference) { - return new UpdatedAllocationDto(conference.Id, conference.ScheduledDateTime, conference.CaseName, + return new UpdatedAllocationDto(conference.Id, ConferenceResponseMapper.Map(conference), conference.ScheduledDateTime, conference.CaseName, conference.GetJudge()?.DisplayName, conference.AllocatedCsoUsername, conference.AllocatedCso, conference.AllocatedCsoId); } }