Skip to content

Commit

Permalink
(#412) notifications: update post created event
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintAngeLs committed Sep 16, 2024
1 parent a4134c1 commit e875ef6
Showing 1 changed file with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,35 @@
using Convey.CQRS.Events;
using Convey.MessageBrokers;
using System;
using System.Collections.Generic;

namespace MiniSpace.Services.Notifications.Application.Events.External
{
[Message("posts")]
public class PostCreated : IEvent
{
public Guid PostId { 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 bool ShouldNotify { get; }

public PostCreated(Guid postId)
public PostCreated(Guid postId, Guid? userId, Guid? organizationId, Guid? eventId, string textContent,
IEnumerable<string> mediaFilesUrls, string context, string visibility, bool shouldNotify)
{
PostId = postId;
UserId = userId;
OrganizationId = organizationId;
EventId = eventId;
TextContent = textContent;
MediaFilesUrls = mediaFilesUrls;
Context = context;
Visibility = visibility;
ShouldNotify = shouldNotify;
}
}
}
}

0 comments on commit e875ef6

Please sign in to comment.