106 lines
3.2 KiB
C#
106 lines
3.2 KiB
C#
using System;
|
|
using System.Text;
|
|
using BestHTTP.Forms;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace RecNet
|
|
{
|
|
// Token: 0x020012D6 RID: 4822
|
|
[Token(Token = "0x20012D6")]
|
|
public static class BugReporting
|
|
{
|
|
// Token: 0x06006DC5 RID: 28101 RVA: 0x00183D38 File Offset: 0x00181F38
|
|
[Token(Token = "0x6006DC5")]
|
|
[Address(RVA = "0x9E8270", Offset = "0x9E7070", VA = "0x1809E8270")]
|
|
public static DABKFAIHBBP 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;
|
|
NOAFOIGJJJL <FIKCMFECPFK>k__BackingField = BPHGKAEDBPE.<FIKCMFECPFK>k__BackingField;
|
|
NOAFOIGJJJL <FIKCMFECPFK>k__BackingField2 = BPHGKAEDBPE.<FIKCMFECPFK>k__BackingField;
|
|
int num3 = 0;
|
|
if (num3 < <FIKCMFECPFK>k__BackingField)
|
|
{
|
|
num3 += num3;
|
|
num3++;
|
|
}
|
|
string text2 = JsonUtility.ToJson(bugReportDTO);
|
|
Encoding utf = Encoding.UTF8;
|
|
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);
|
|
}
|
|
int num4 = 0;
|
|
PMGCJEPKFOF<HOOILIHKMEG> pmgcjepkfof = BPHGKAEDBPE.CKPCAIJMPJN(text, httpmultiPartForm, num4 != 0);
|
|
int num5 = 0;
|
|
return EEMMNNGBJGD.DMDEJFMPJDE(pmgcjepkfof, num5 != 0);
|
|
}
|
|
|
|
// Token: 0x0400492A RID: 18730
|
|
[Token(Token = "0x400492A")]
|
|
public const string BBBLGFHBMGA = "text/plain";
|
|
|
|
// Token: 0x0400492B RID: 18731
|
|
[Token(Token = "0x400492B")]
|
|
private const string NKOJGKCAHEO = "api/bugreporting/";
|
|
|
|
// Token: 0x020012D7 RID: 4823
|
|
[Token(Token = "0x20012D7")]
|
|
[Serializable]
|
|
private class BugReportDTO
|
|
{
|
|
// Token: 0x06006DC6 RID: 28102 RVA: 0x00183E30 File Offset: 0x00182030
|
|
[Token(Token = "0x6006DC6")]
|
|
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
|
public BugReportDTO()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400492C RID: 18732
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400492C")]
|
|
public string Summary;
|
|
|
|
// Token: 0x0400492D RID: 18733
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400492D")]
|
|
public string Description;
|
|
|
|
// Token: 0x0400492E RID: 18734
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400492E")]
|
|
public string TestCaseKey;
|
|
|
|
// Token: 0x0400492F RID: 18735
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400492F")]
|
|
public string BuildVersion;
|
|
|
|
// Token: 0x04004930 RID: 18736
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4004930")]
|
|
public long BuildTimestamp;
|
|
|
|
// Token: 0x04004931 RID: 18737
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4004931")]
|
|
public int? BundleVersionCode;
|
|
}
|
|
}
|
|
}
|