Skip to content

Commit baa9d5d

Browse files
committed
(#411) posts: udpate post created event
1 parent c3aee1a commit baa9d5d

File tree

1 file changed

+17
-2
lines changed
  • MiniSpace.Services.Posts/src/MiniSpace.Services.Posts.Application/Events

1 file changed

+17
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,31 @@
11
using Convey.CQRS.Events;
2+
using System;
3+
using System.Collections.Generic;
24

35
namespace MiniSpace.Services.Posts.Application.Events
46
{
57
public class PostCreated : IEvent
68
{
79
public Guid PostId { get; }
8-
public IEnumerable<string> MediaFilesUrls { get; }
10+
public Guid? UserId { get; }
11+
public Guid? OrganizationId { get; }
12+
public Guid? EventId { get; }
13+
public string TextContent { get; }
14+
public IEnumerable<string> MediaFilesUrls { get; }
15+
public string Context { get; }
16+
public string Visibility { get; }
917

10-
public PostCreated(Guid postId, IEnumerable<string> mediaFilesUrls)
18+
public PostCreated(Guid postId, Guid? userId, Guid? organizationId, Guid? eventId, string textContent,
19+
IEnumerable<string> mediaFilesUrls, string context, string visibility)
1120
{
1221
PostId = postId;
22+
UserId = userId;
23+
OrganizationId = organizationId;
24+
EventId = eventId;
25+
TextContent = textContent;
1326
MediaFilesUrls = mediaFilesUrls;
27+
Context = context;
28+
Visibility = visibility;
1429
}
1530
}
1631
}

0 commit comments

Comments
 (0)