public void AddWebhook(IWebhookDTO webhook)
        {
            if (_webhooks.Contains(webhook))
            {
                return;
            }

            _webhooks.Add(webhook);
        }
Ejemplo n.º 2
0
        public IWebhook CreateWebhook(IWebhookDTO webhookDTO)
        {
            if (webhookDTO == null)
            {
                return(null);
            }

            return(new Webhook(webhookDTO));
        }
Ejemplo n.º 3
0
 public Webhook(IWebhookDTO dto)
 {
     WebhookDTO = dto;
 }
 public void RemoveWebhook(IWebhookDTO webhook)
 {
     _webhooks.Remove(webhook);
 }