105 lines
3.3 KiB
C#
105 lines
3.3 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Text;
|
|
using BestHTTP.Forms;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Async;
|
|
using UnityEngine;
|
|
|
|
namespace RecNet
|
|
{
|
|
// Token: 0x02000CD6 RID: 3286
|
|
[Token(Token = "0x2000CD6")]
|
|
[StructLayout(3)]
|
|
public static class BugReporting
|
|
{
|
|
// Token: 0x06004F55 RID: 20309 RVA: 0x00125D38 File Offset: 0x00123F38
|
|
[Token(Token = "0x6004F55")]
|
|
[Address(RVA = "0x1076D80", Offset = "0x1075780", VA = "0x181076D80")]
|
|
public static IPromise ReportBug(string summary, string description, byte[] screenshotData, byte[] outputLogData, string testCaseKey)
|
|
{
|
|
int num = 0;
|
|
string text = string.Format("{0}v2/reportbug", "api/bugreporting/");
|
|
HTTPMultiPartForm httpmultiPartForm = new HTTPMultiPartForm();
|
|
int num2 = 0;
|
|
BugReporting.BugReportDTO bugReportDTO;
|
|
bugReportDTO.FieldGetter(num2, num, outputLogData);
|
|
bugReportDTO.TestCaseKey = 0;
|
|
bugReportDTO.Summary = summary;
|
|
bugReportDTO.Description = description;
|
|
string hnpbhliofnc = KMJJGELKNAP.HNPBHLIOFNC;
|
|
bugReportDTO.BuildVersion = hnpbhliofnc;
|
|
long mkibhleldcp = KMJJGELKNAP.MKIBHLELDCP;
|
|
bugReportDTO.BuildTimestamp = mkibhleldcp;
|
|
string text2 = JsonUtility.ToJson(bugReportDTO);
|
|
Encoding utf = Encoding.UTF8;
|
|
int num3 = 0;
|
|
httpmultiPartForm.AddField("bugReport", text2, utf);
|
|
if (screenshotData != 0 && screenshotData.Length != num3)
|
|
{
|
|
string text3;
|
|
httpmultiPartForm.AddBinaryData("screenshotData", screenshotData, "screenshot.png", text3);
|
|
}
|
|
if (outputLogData != 0 && outputLogData.Length != num3)
|
|
{
|
|
string text4;
|
|
httpmultiPartForm.AddBinaryData("outputLogData", outputLogData, "output_log.txt", text4);
|
|
}
|
|
IPromise<HOOILIHKMEG> promise = BPHGKAEDBPE.CKPCAIJMPJN(text, httpmultiPartForm, true);
|
|
int num4 = 0;
|
|
return EEMMNNGBJGD.DMDEJFMPJDE(promise, num4 != 0);
|
|
}
|
|
|
|
// Token: 0x04003AA5 RID: 15013
|
|
[Token(Token = "0x4003AA5")]
|
|
public static string BBBLGFHBMGA = "text/plain";
|
|
|
|
// Token: 0x04003AA6 RID: 15014
|
|
[Token(Token = "0x4003AA6")]
|
|
private static string NKOJGKCAHEO = "api/bugreporting/";
|
|
|
|
// Token: 0x02000CD7 RID: 3287
|
|
[Token(Token = "0x2000CD7")]
|
|
[Serializable]
|
|
private class BugReportDTO
|
|
{
|
|
// Token: 0x06004F57 RID: 20311 RVA: 0x00125E44 File Offset: 0x00124044
|
|
[Token(Token = "0x6004F57")]
|
|
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
|
public BugReportDTO()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04003AA7 RID: 15015
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4003AA7")]
|
|
public string Summary;
|
|
|
|
// Token: 0x04003AA8 RID: 15016
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4003AA8")]
|
|
public string Description;
|
|
|
|
// Token: 0x04003AA9 RID: 15017
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4003AA9")]
|
|
public string TestCaseKey;
|
|
|
|
// Token: 0x04003AAA RID: 15018
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4003AAA")]
|
|
public string BuildVersion;
|
|
|
|
// Token: 0x04003AAB RID: 15019
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4003AAB")]
|
|
public long BuildTimestamp;
|
|
|
|
// Token: 0x04003AAC RID: 15020
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4003AAC")]
|
|
public int? BundleVersionCode;
|
|
}
|
|
}
|
|
}
|