Skip to content

Commit

Permalink
VIH-11301 add conference object to UpdatedAllocationDto.cs (#2378)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaed-parkar authored Feb 24, 2025
1 parent c6703c3 commit 367c603
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions VideoWeb/VideoWeb.EventHub/Models/UpdatedAllocationDto.cs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 367c603

Please sign in to comment.