25 lines
765 B
C#
25 lines
765 B
C#
using Newsbot.Collector.Domain.Entities;
|
|
using Newsbot.Collector.Domain.Models;
|
|
|
|
namespace Newsbot.Collector.Domain.Dto;
|
|
|
|
public class DiscordNotificationDto
|
|
{
|
|
public Guid Id { get; set; }
|
|
public Guid SourceId { get; set; }
|
|
public Guid DiscordWebHookId { get; set; }
|
|
public bool CodeAllowReleases { get; set; }
|
|
public bool CodeAllowCommits { get; set; }
|
|
|
|
public static DiscordNotificationDto Convert(DiscordNotificationEntity model)
|
|
{
|
|
return new DiscordNotificationDto
|
|
{
|
|
Id = model.Id,
|
|
SourceId = model.SourceId,
|
|
DiscordWebHookId = model.DiscordWebHookId,
|
|
CodeAllowCommits = model.CodeAllowCommits,
|
|
CodeAllowReleases = model.CodeAllowReleases
|
|
};
|
|
}
|
|
} |