Skip to content

Commit 0ca85e9

Browse files
committed
(#411) notifications: update event created event handler
1 parent a8389d8 commit 0ca85e9

File tree

1 file changed

+14
-5
lines changed
  • MiniSpace.Services.Notifications/src/MiniSpace.Services.Notifications.Application/Events/External/Events

1 file changed

+14
-5
lines changed

MiniSpace.Services.Notifications/src/MiniSpace.Services.Notifications.Application/Events/External/Events/EventCreated.cs

+14-5
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,19 @@
66
namespace MiniSpace.Services.Notifications.Application.Events.External
77
{
88
[Message("events")]
9-
public class EventCreated(Guid eventId, Guid organizerId, IEnumerable<Guid> mediaFilesIds) : IEvent
9+
public class EventCreated : IEvent
1010
{
11-
public Guid EventId { get; set; } = eventId;
12-
public Guid OrganizerId { get; set; } = organizerId;
13-
public IEnumerable<Guid> MediaFilesIds { get; set; } = mediaFilesIds;
11+
public Guid EventId { get; set; }
12+
public string OrganizerType { get; set; }
13+
public Guid OrganizerId { get; set; }
14+
public IEnumerable<string> MediaFilesUrls { get; set; }
15+
16+
public EventCreated(Guid eventId, string organizerType, Guid organizerId, IEnumerable<string> mediaFilesUrls)
17+
{
18+
EventId = eventId;
19+
OrganizerType = organizerType;
20+
OrganizerId = organizerId;
21+
MediaFilesUrls = mediaFilesUrls;
22+
}
1423
}
15-
}
24+
}

0 commit comments

Comments
 (0)