20 lines
488 B
C#
20 lines
488 B
C#
|
using Newsbot.Collector.Domain.Models;
|
||
|
|
||
|
namespace Newsbot.Collector.Domain.Dto;
|
||
|
|
||
|
public class SubscriptionDto
|
||
|
{
|
||
|
public Guid ID { get; set; }
|
||
|
public Guid SourceID { get; set; }
|
||
|
public Guid DiscordWebHookID { get; set; }
|
||
|
|
||
|
public static SubscriptionDto Convert(SubscriptionModel model)
|
||
|
{
|
||
|
return new SubscriptionDto
|
||
|
{
|
||
|
ID = model.ID,
|
||
|
SourceID = model.SourceID,
|
||
|
DiscordWebHookID = model.DiscordWebHookID
|
||
|
};
|
||
|
}
|
||
|
}
|