namespace SRDebugger.Services { using System.Collections.Generic; public class BugReport { public List ConsoleLog; public string Email; public byte[] ScreenshotData; public Dictionary> SystemInformation; public string UserDescription; } public delegate void BugReportCompleteCallback(bool didSucceed, string errorMessage); public delegate void BugReportProgressCallback(float progress); public interface IBugReportService { /// /// 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). /// /// Bug report to send /// Delegate to call once bug report is submitted successfully /// Optionally provide a callback for when progress % is known void SendBugReport(BugReport report, BugReportCompleteCallback completeHandler, BugReportProgressCallback progressCallback = null); } }