using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RuriLib.Models
{
///
/// The class that gets JSON-encoded and gets sent to the Webhook URL when a hit is found (if enabled).
///
public class WebhookFormat
{
///
/// Initializes the WebhookFormat object.
///
/// The input data
/// The hit type
/// The string-encoded captured data
/// The unix timestamp
/// The config name
/// The config author
public WebhookFormat(string data, string type, string capturedData, DateTime timestamp, string configName, string configAuthor)
{
Data = data;
Type = type;
CapturedData = capturedData;
Timestamp = Math.Round((timestamp.Subtract(new DateTime(1970, 1, 1))).TotalSeconds);
ConfigName = configName;
ConfigAuthor = configAuthor;
}
/// The input data.
public string Data { get; set; }
/// The hit type.
public string Type { get; set; }
/// The string-encoded captured data.
public string CapturedData { get; set; }
/// The unix timestamp.
public double Timestamp { get; set; }
/// The config name.
public string ConfigName { get; set; }
/// The config author.
public string ConfigAuthor { get; set; }
}
}