You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/3rd/StompyRobot/SRDebugger/Scripts/Services/IBugReportService.cs

32 lines
1.2 KiB
C#

3 months ago
namespace SRDebugger.Services
{
using System.Collections.Generic;
public class BugReport
{
public List<ConsoleEntry> ConsoleLog;
public string Email;
public byte[] ScreenshotData;
public Dictionary<string, Dictionary<string, object>> SystemInformation;
public string UserDescription;
}
public delegate void BugReportCompleteCallback(bool didSucceed, string errorMessage);
public delegate void BugReportProgressCallback(float progress);
public interface IBugReportService
{
/// <summary>
/// Submit a bug report to the SRDebugger API.
/// completeHandler can be invoked any time after the method is called
/// (even before the method has returned in case of internet reachability failure).
/// </summary>
/// <param name="report">Bug report to send</param>
/// <param name="completeHandler">Delegate to call once bug report is submitted successfully</param>
/// <param name="progressCallback">Optionally provide a callback for when progress % is known</param>
void SendBugReport(BugReport report, BugReportCompleteCallback completeHandler,
BugReportProgressCallback progressCallback = null);
}
}