m
This commit is contained in:
@@ -0,0 +1,105 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using BestHTTP.Forms;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecNet
|
||||
{
|
||||
// Token: 0x020013A8 RID: 5032
|
||||
[Token(Token = "0x20013A8")]
|
||||
public static class BugReporting
|
||||
{
|
||||
// Token: 0x0600713B RID: 28987 RVA: 0x0018C21C File Offset: 0x0018A41C
|
||||
[Token(Token = "0x600713B")]
|
||||
[Address(RVA = "0x158D840", Offset = "0x158C840", VA = "0x18158D840")]
|
||||
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: 0x04004AB2 RID: 19122
|
||||
[Token(Token = "0x4004AB2")]
|
||||
public const string BBBLGFHBMGA = "text/plain";
|
||||
|
||||
// Token: 0x04004AB3 RID: 19123
|
||||
[Token(Token = "0x4004AB3")]
|
||||
private const string NKOJGKCAHEO = "api/bugreporting/";
|
||||
|
||||
// Token: 0x020013A9 RID: 5033
|
||||
[Token(Token = "0x20013A9")]
|
||||
[Serializable]
|
||||
private class BugReportDTO
|
||||
{
|
||||
// Token: 0x0600713C RID: 28988 RVA: 0x0018C314 File Offset: 0x0018A514
|
||||
[Token(Token = "0x600713C")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public BugReportDTO()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04004AB4 RID: 19124
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4004AB4")]
|
||||
public string Summary;
|
||||
|
||||
// Token: 0x04004AB5 RID: 19125
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4004AB5")]
|
||||
public string Description;
|
||||
|
||||
// Token: 0x04004AB6 RID: 19126
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4004AB6")]
|
||||
public string TestCaseKey;
|
||||
|
||||
// Token: 0x04004AB7 RID: 19127
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4004AB7")]
|
||||
public string BuildVersion;
|
||||
|
||||
// Token: 0x04004AB8 RID: 19128
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4004AB8")]
|
||||
public long BuildTimestamp;
|
||||
|
||||
// Token: 0x04004AB9 RID: 19129
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4004AB9")]
|
||||
public int? BundleVersionCode;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user