mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user