-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#411) posts: udpate post created event
- Loading branch information
1 parent
c3aee1a
commit baa9d5d
Showing
1 changed file
with
17 additions
and
2 deletions.
There are no files selected for viewing
19 changes: 17 additions & 2 deletions
19
MiniSpace.Services.Posts/src/MiniSpace.Services.Posts.Application/Events/PostCreated.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,31 @@ | ||
using Convey.CQRS.Events; | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace MiniSpace.Services.Posts.Application.Events | ||
{ | ||
public class PostCreated : IEvent | ||
{ | ||
public Guid PostId { get; } | ||
public IEnumerable<string> MediaFilesUrls { get; } | ||
public Guid? UserId { get; } | ||
public Guid? OrganizationId { get; } | ||
public Guid? EventId { get; } | ||
public string TextContent { get; } | ||
public IEnumerable<string> MediaFilesUrls { get; } | ||
public string Context { get; } | ||
public string Visibility { get; } | ||
|
||
public PostCreated(Guid postId, IEnumerable<string> mediaFilesUrls) | ||
public PostCreated(Guid postId, Guid? userId, Guid? organizationId, Guid? eventId, string textContent, | ||
IEnumerable<string> mediaFilesUrls, string context, string visibility) | ||
{ | ||
PostId = postId; | ||
UserId = userId; | ||
OrganizationId = organizationId; | ||
EventId = eventId; | ||
TextContent = textContent; | ||
MediaFilesUrls = mediaFilesUrls; | ||
Context = context; | ||
Visibility = visibility; | ||
} | ||
} | ||
} |