using Newsbot.Collector.Domain.Entities;
namespace Newsbot.Collector.Domain.Dto;
public class DiscordWebHookDto
{
public Guid ID { get; set; }
public string? Url { get; set; }
public string? Server { get; set; }
public string? Channel { get; set; }
public bool Enabled { get; set; }
public static DiscordWebHookDto Convert(DiscordWebhookEntity model)
return new DiscordWebHookDto
ID = model.Id,
Url = model.Url,
Server = model.Server,
Channel = model.Channel,
Enabled = model.Enabled,
};
}