Пример #1
0
 /// <summary>
 /// Returns all uploaded crash reports.
 /// Each report contains the date and uploaded ID.
 /// </summary>
 /// <returns></returns>
 public CrashReport[] getUploadedReports()
 {
     object[] result = API.Apply <object[]>("getUploadedReports");
     return(Array.ConvertAll(
                result, value => CrashReport.FromObject(value)
                ));
 }
Пример #2
0
        /// <summary>
        /// Returns the date and ID of the last crash report.
        /// If no crash reports have been sent or the crash reporter
        /// has not been started, null is returned.
        /// </summary>
        /// <returns></returns>
        public CrashReport getLastCrashReport()
        {
            object result = API.Apply("getLastCrashReport");

            return(CrashReport.FromObject(result));
        }