public PrimaryWallEvent(PrimaryWallTypeEvents eventType, long postId) { EventType = eventType; PostId = postId; }
public PrimaryWallEvent(PrimaryWallTypeEvents eventType, Post post) { EventType = eventType; PostId = post?.Id ?? throw new ArgumentNullException(nameof(post)); Post = post; }