using System.Text.Json.Serialization;
namespace Elsa.Webhooks.Models;
///
/// Represents a webhook url registration
///
public class WebhookRegistration
{
///
/// Constructor.
///
[JsonConstructor]
public WebhookRegistration()
{
}
///
/// Constructor.
///
public WebhookRegistration(Uri url)
{
Url = url;
}
///
/// The URL to deliver the webhook event to.
///
public Uri Url { get; set; } = default!;
///
/// A whitelist of event types to deliver. If empty, all events will be delivered.
///
public HashSet EventTypes { get; set; } = new();
}