Added a webhook for hits with configurable URL to RL General Settings. For now it's just for custom made backedns, I will expand it later on with discord and telegram hooks.

This commit is contained in:
ruri
2019-09-07 17:13:01 +02:00
parent 31a349db22
commit cd7b3046aa
6 changed files with 83 additions and 0 deletions
@@ -47,6 +47,14 @@ namespace RuriLib.ViewModels
/// <summary>Whether to store the last Response Source after a successful check.</summary>
public bool SaveLastSource { get { return saveLastSource; } set { saveLastSource = value; OnPropertyChanged(); } }
private bool webhookEnabled = false;
/// <summary>Whether to activate the hit webhook that gets called upon a SUCCESS or a custom result.</summary>
public bool WebhookEnabled { get { return webhookEnabled; } set { webhookEnabled = value; OnPropertyChanged(); } }
private string webhookURL = "";
/// <summary>The URL where the JSON-encoded hit gets sent.</summary>
public string WebhookURL { get { return webhookURL; } set { webhookURL = value; OnPropertyChanged(); } }
/// <summary>
/// Resets the properties to their default value.
/// </summary>