using System; using System.Runtime.InteropServices; using System.Text; namespace Sony.NP { // Token: 0x02000137 RID: 311 public class ServerErrorManaged { // Token: 0x0600065F RID: 1631 [DllImport("UnityNpToolkit2")] private static extern void PrxReadServerError(uint responseId, FunctionTypes apiCalled, out long webApiNextAvailableTime, out int httpStatusCode, [MarshalAs(UnmanagedType.LPArray, SizeConst = 512)] [In] [Out] byte[] jsonData, out APIResult result); // Token: 0x170002E4 RID: 740 // (get) Token: 0x06000660 RID: 1632 RVA: 0x00011F60 File Offset: 0x00010F60 public string JsonData { get { return Encoding.UTF8.GetString(this.jsonData, 0, this.jsonData.Length); } } // Token: 0x170002E5 RID: 741 // (get) Token: 0x06000661 RID: 1633 RVA: 0x00011F8C File Offset: 0x00010F8C public long WebApiNextAvailableTime { get { return this.webApiNextAvailableTime; } } // Token: 0x170002E6 RID: 742 // (get) Token: 0x06000662 RID: 1634 RVA: 0x00011FA4 File Offset: 0x00010FA4 public int HttpStatusCode { get { return this.httpStatusCode; } } // Token: 0x06000663 RID: 1635 RVA: 0x00011FBC File Offset: 0x00010FBC internal void ReadResult(uint unqiueId, FunctionTypes apiCalled) { APIResult apiresult; ServerErrorManaged.PrxReadServerError(unqiueId, apiCalled, out this.webApiNextAvailableTime, out this.httpStatusCode, this.jsonData, out apiresult); if (apiresult.RaiseException) { throw new NpToolkitException(apiresult); } } // Token: 0x04000629 RID: 1577 private const int JSON_DATA_MAX_LEN = 512; // Token: 0x0400062A RID: 1578 internal byte[] jsonData = new byte[512]; // Token: 0x0400062B RID: 1579 internal long webApiNextAvailableTime = 0L; // Token: 0x0400062C RID: 1580 internal int httpStatusCode = 0; } }