Newsbot.Collector/Newsbot.Collector.Domain/Dto/DiscordWebHookDto.cs

24 lines
614 B
C#
Raw Normal View History

2023-06-23 21:55:56 -07:00
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; }
2023-06-23 21:55:56 -07:00
public static DiscordWebHookDto Convert(DiscordWebhookEntity model)
{
return new DiscordWebHookDto
{
2023-06-23 21:55:56 -07:00
ID = model.Id,
Url = model.Url,
Server = model.Server,
Channel = model.Channel,
Enabled = model.Enabled,
};
}
}