// Token: 0x0600015D RID: 349 RVA: 0x00010B2C File Offset: 0x0000ED2C public void method_7() { for (;;) { try { this.class4_0.method_4(Class185.smethod_0(537659541), Class185.smethod_0(537700781), true, false); Dictionary <string, string> dictionary = Class70.smethod_1(); dictionary[Class185.smethod_0(537659574)] = Class185.smethod_0(537659556); dictionary[Class185.smethod_0(537659600)] = Class185.smethod_0(537713814); dictionary[Class185.smethod_0(537659632)] = this.string_4; dictionary[Class185.smethod_0(537659440)] = this.string_5; this.class70_0.method_7(string.Format(Class185.smethod_0(537659465), this.string_10), dictionary, false); } catch (ThreadAbortException) { } catch { this.class4_0.method_4(Class185.smethod_0(537661320), Class185.smethod_0(537700781), true, false); Thread.Sleep(GClass0.int_0); continue; } break; } }
// Token: 0x0600015D RID: 349 RVA: 0x0000F578 File Offset: 0x0000D778 public void method_7() { for (;;) { try { this.class4_0.method_4("Submitting shipping method", "#c2c2c2", true, false); Dictionary <string, string> dictionary = Class70.smethod_1(); dictionary["_method"] = "patch"; dictionary["order[state_lock_version]"] = "1"; dictionary["order[shipments_attributes][0][selected_shipping_rate_id]"] = this.string_4; dictionary["order[shipments_attributes][0][id]"] = this.string_5; this.class70_0.method_7(string.Format("https://www.antonioli.eu/en/{0}/checkout/update/delivery", this.string_10), dictionary, false); } catch (ThreadAbortException) { } catch { this.class4_0.method_4("Error submitting shipping method", "#c2c2c2", true, false); Thread.Sleep(GClass0.int_0); continue; } break; } }
// Token: 0x0600015F RID: 351 RVA: 0x00010D74 File Offset: 0x0000EF74 public void method_9() { for (;;) { try { this.class4_0.method_4(Class185.smethod_0(537661418), Class185.smethod_0(537700781), true, false); Dictionary <string, string> dictionary = Class70.smethod_1(); dictionary[Class185.smethod_0(537661206)] = this.string_7; dictionary[Class185.smethod_0(537661240)] = (this.string_6.Contains(Class185.smethod_0(537696580)) ? this.string_6.Replace(Class185.smethod_0(537661237), string.Empty) : (this.string_6.Replace(Class185.smethod_0(537661237), string.Empty) + Class185.smethod_0(537661229))); HttpResponseMessage httpResponseMessage = this.class70_0.method_7(string.Format(Class185.smethod_0(537661222), this.string_10), dictionary, false); httpResponseMessage.EnsureSuccessStatusCode(); this.string_8 = httpResponseMessage.smethod_0()[Class185.smethod_0(537692633)].ToString(); } catch (ThreadAbortException) { } catch { this.class4_0.method_4(Class185.smethod_0(537661084), Class185.smethod_0(537700781), true, false); Thread.Sleep(GClass0.int_0); continue; } break; } }
// Token: 0x060002CC RID: 716 RVA: 0x0001774C File Offset: 0x0001594C public HttpResponseMessage method_11(string string_0, Dictionary <string, string> dictionary_0, bool bool_1) { HttpResponseMessage result; for (;;) { this.method_4(string_0, "POST"); HttpRequestMessage request = new HttpRequestMessage { Method = new HttpMethod("PATCH"), RequestUri = new Uri(string_0), Content = Class70.smethod_2(dictionary_0) }; result = this.httpClient_0.SendAsync(request).Result; if (!result.smethod_5()) { break; } this.method_3(result.smethod_3(), string_0); } if (!bool_1) { return(result); } return(this.method_1(string_0, result)); }
// Token: 0x06000132 RID: 306 RVA: 0x0000DF90 File Offset: 0x0000C190 public static async void smethod_11(object object_0, JSExtInvokeArgs jsextInvokeArgs_0) { if (Class168.form_0 == null) { Class168.dateTime_0 = Licenser.dateTime_0; Dictionary <string, string> dictionary = Class70.smethod_1(); dictionary["hosted_button_id"] = Class168.string_4; dictionary["cmd"] = "_s-xclick"; dictionary["on0"] = "License Key"; dictionary["os0"] = GClass0.string_2; TaskAwaiter <HttpResponseMessage> taskAwaiter = new Class70(null, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36", 10, false, true, null, false).method_8("https://www.paypal.com/cgi-bin/webscr", dictionary, false).GetAwaiter(); if (!taskAwaiter.IsCompleted) { await taskAwaiter; TaskAwaiter <HttpResponseMessage> taskAwaiter2; taskAwaiter = taskAwaiter2; taskAwaiter2 = default(TaskAwaiter <HttpResponseMessage>); } Class168.form_0 = new Renewal(taskAwaiter.GetResult().Headers.Location.ToString()); Class168.form_0.Show(); MainWindow.webView_0.QueueScriptCall("swal('PayPal Opened', 'A PayPal browser has appeared, please complete the payment.', 'success', {timer: 3000})"); } else { Class168.form_0.WindowState = FormWindowState.Normal; Class168.form_0.BringToFront(); } }
// Token: 0x0600015F RID: 351 RVA: 0x0000F74C File Offset: 0x0000D94C public void method_9() { for (;;) { try { this.class4_0.method_4("Getting payment token", "#c2c2c2", true, false); Dictionary <string, string> dictionary = Class70.smethod_1(); dictionary["transaction"] = this.string_7; dictionary["amount"] = (this.string_6.Contains(".") ? this.string_6.Replace(",", string.Empty) : (this.string_6.Replace(",", string.Empty) + ".0")); HttpResponseMessage httpResponseMessage = this.class70_0.method_7(string.Format("https://www.antonioli.eu/en/{0}/checkout/payment/get_token.json", this.string_10), dictionary, false); httpResponseMessage.EnsureSuccessStatusCode(); this.string_8 = httpResponseMessage.smethod_0()["token"].ToString(); } catch (ThreadAbortException) { } catch { this.class4_0.method_4("Error getting payment token", "#c2c2c2", true, false); Thread.Sleep(GClass0.int_0); continue; } break; } }
// Token: 0x060000B2 RID: 178 RVA: 0x0000BB44 File Offset: 0x00009D44 public void method_8() { for (;;) { try { this.class4_0.method_4("Submitting payment", "orange", true, false); Dictionary <string, string> dictionary = Class70.smethod_1(); dictionary["card_number"] = ((string)this.jtoken_1["payment"]["card"]["number"]).Replace(" ", string.Empty); dictionary["exp_month"] = (string)this.jtoken_1["payment"]["card"]["exp_month"]; dictionary["exp_year"] = (string)this.jtoken_1["payment"]["card"]["exp_year"]; dictionary["cv2_number"] = (string)this.jtoken_1["payment"]["card"]["cvv"]; dictionary["HPS_SessionID"] = this.string_10; dictionary["action"] = "confirm"; HttpResponseMessage httpResponseMessage = this.class70_0.method_7("https://hps.datacash.com/hps/?", dictionary, false); if (httpResponseMessage.smethod_3().Contains("Please enter a valid card number")) { this.class4_0.method_0("Invalid card details", "red", false); } string string_ = httpResponseMessage.Headers.GetValues("Location").First <string>().ToString(); this.method_9(string_); } catch (ThreadAbortException) { } catch { this.class4_0.method_4("Error submitting payment", "#c2c2c2", true, false); Thread.Sleep(GClass0.int_1); continue; } break; } }
// Token: 0x06000132 RID: 306 RVA: 0x0000F0E0 File Offset: 0x0000D2E0 public static async void smethod_11(object object_0, JSExtInvokeArgs jsextInvokeArgs_0) { if (Class173.form_0 == null) { Class173.dateTime_0 = GForm3.dateTime_0; Dictionary <string, string> dictionary = Class70.smethod_1(); dictionary[Class185.smethod_0(537709009)] = Class173.string_4; dictionary[Class185.smethod_0(537709048)] = Class185.smethod_0(537709042); dictionary[Class185.smethod_0(537709026)] = Class185.smethod_0(537708828); dictionary[Class185.smethod_0(537708814)] = GClass0.string_2; TaskAwaiter <HttpResponseMessage> taskAwaiter = new Class70(null, Class185.smethod_0(537692910), 10, false, true, null, false).method_8(Class185.smethod_0(537708856), dictionary, false).GetAwaiter(); if (!taskAwaiter.IsCompleted) { await taskAwaiter; TaskAwaiter <HttpResponseMessage> taskAwaiter2; taskAwaiter = taskAwaiter2; taskAwaiter2 = default(TaskAwaiter <HttpResponseMessage>); } Class173.form_0 = new GForm6(taskAwaiter.GetResult().Headers.Location.ToString()); Class173.form_0.Show(); GForm1.webView_0.QueueScriptCall(Class185.smethod_0(537708884)); } else { Class173.form_0.WindowState = FormWindowState.Normal; Class173.form_0.BringToFront(); } }
// Token: 0x060000B2 RID: 178 RVA: 0x0000C894 File Offset: 0x0000AA94 public void method_8() { for (;;) { try { this.class4_0.method_4(Class185.smethod_0(537660830), Class185.smethod_0(537700964), true, false); Dictionary <string, string> dictionary = Class70.smethod_1(); dictionary[Class185.smethod_0(537686480)] = ((string)this.jtoken_1[Class185.smethod_0(537662788)][Class185.smethod_0(537660840)][Class185.smethod_0(537660835)]).Replace(Class185.smethod_0(537711014), string.Empty); dictionary[Class185.smethod_0(537660870)] = (string)this.jtoken_1[Class185.smethod_0(537662788)][Class185.smethod_0(537660840)][Class185.smethod_0(537660870)]; dictionary[Class185.smethod_0(537660699)] = (string)this.jtoken_1[Class185.smethod_0(537662788)][Class185.smethod_0(537660840)][Class185.smethod_0(537660699)]; dictionary[Class185.smethod_0(537686466)] = (string)this.jtoken_1[Class185.smethod_0(537662788)][Class185.smethod_0(537660840)][Class185.smethod_0(537660682)]; dictionary[Class185.smethod_0(537686515)] = this.string_10; dictionary[Class185.smethod_0(537670350)] = Class185.smethod_0(537686503); HttpResponseMessage httpResponseMessage = this.class70_0.method_7(Class185.smethod_0(537686293), dictionary, false); if (httpResponseMessage.smethod_3().Contains(Class185.smethod_0(537686314))) { this.class4_0.method_0(Class185.smethod_0(537686337), Class185.smethod_0(537700909), false); } string string_ = httpResponseMessage.Headers.GetValues(Class185.smethod_0(537686380)).First <string>().ToString(); this.method_9(string_); } catch (ThreadAbortException) { } catch { this.class4_0.method_4(Class185.smethod_0(537660605), Class185.smethod_0(537700781), true, false); Thread.Sleep(GClass0.int_1); continue; } break; } }
private static RectangleF smethod_9(Class70 A_0, int[] A_1) { float x = smethod_17(A_0.class623_0, A_1); float y = smethod_17(A_0.class623_1, A_1); float width = smethod_17(A_0.class623_2, A_1) - x; return(new RectangleF(x, y, width, smethod_17(A_0.class623_3, A_1) - y)); }
// Token: 0x060006EF RID: 1775 RVA: 0x0002D04C File Offset: 0x0002B24C private static Task smethod_9(TextWriter textWriter_0, string string_0, bool[] bool_3, StringEscapeHandling stringEscapeHandling_0, JsonTextWriter jsonTextWriter_0, char[] char_0, CancellationToken cancellationToken_0) { int num = Class70.smethod_4(string_0, bool_3, stringEscapeHandling_0); if (num != -1) { return(Class70.smethod_10(textWriter_0, string_0, num, bool_3, stringEscapeHandling_0, jsonTextWriter_0, char_0, cancellationToken_0)); } return(textWriter_0.smethod_5(string_0, cancellationToken_0)); }
// Token: 0x060006ED RID: 1773 RVA: 0x0002CF60 File Offset: 0x0002B160 private static async Task smethod_7(Task task_0, TextWriter textWriter_0, string string_0, char char_0, bool[] bool_3, StringEscapeHandling stringEscapeHandling_0, JsonTextWriter jsonTextWriter_0, char[] char_1, CancellationToken cancellationToken_0) { await task_0.ConfigureAwait(false); if (!string.IsNullOrEmpty(string_0)) { await Class70.smethod_9(textWriter_0, string_0, bool_3, stringEscapeHandling_0, jsonTextWriter_0, char_1, cancellationToken_0).ConfigureAwait(false); } await textWriter_0.WriteAsync(char_0).ConfigureAwait(false); }
// Token: 0x060002CF RID: 719 RVA: 0x000178C0 File Offset: 0x00015AC0 public Task <HttpResponseMessage> method_14(string string_0, Dictionary <string, string> dictionary_0, bool bool_1) { this.method_4(string_0, "PATCH"); HttpRequestMessage request = new HttpRequestMessage { Method = new HttpMethod("PATCH"), RequestUri = new Uri(string_0), Content = Class70.smethod_2(dictionary_0) }; return(this.httpClient_0.SendAsync(request)); }
private void method_10(ShapeObject A_0) { int num = 1; Class70[] textBoxRects = A_0.TextBoxRects; if ((textBoxRects != null) && (textBoxRects.Length > 0)) { Class70 class2 = textBoxRects[(textBoxRects.Length == 1) ? 0 : 1]; string str = string.Format(BookmarkStart.b("尦ᤨ嘪ബ吮0串ᔴ䰶ସ䘺ᴼ䐾牀㹂", num), new object[] { this.method_15(class2.class623_0), this.method_15(class2.class623_1), this.method_15(class2.class623_2), this.method_15(class2.class623_3) }); this.class400_0.method_40(BookmarkStart.b("䌦嬨䨪娬ᔮ䔰嘲䴴䌶ᐸ娺似娾⁀あ", num), str); } }
// Token: 0x060006E9 RID: 1769 RVA: 0x0002CDE0 File Offset: 0x0002AFE0 public static string smethod_3(string string_0, char char_0, bool bool_3, StringEscapeHandling stringEscapeHandling_0) { bool[] object_ = Class70.smethod_0(stringEscapeHandling_0, char_0); string result; using (StringWriter stringWriter = Class97.smethod_6((string_0 != null) ? string_0.Length : 16)) { char[] array = null; Class70.smethod_2(stringWriter, string_0, char_0, bool_3, object_, stringEscapeHandling_0, null, ref array); result = stringWriter.ToString(); } return(result); }
// Token: 0x06000138 RID: 312 RVA: 0x0000F22C File Offset: 0x0000D42C void IAsyncStateMachine.MoveNext() { int num2; int num = num2; try { TaskAwaiter <HttpResponseMessage> taskAwaiter3; if (num != 0) { if (Class173.form_0 != null) { Class173.form_0.WindowState = FormWindowState.Normal; Class173.form_0.BringToFront(); goto IL_150; } Class173.dateTime_0 = GForm3.dateTime_0; Dictionary <string, string> dictionary = Class70.smethod_1(); dictionary[Class185.smethod_0(537709009)] = Class173.string_4; dictionary[Class185.smethod_0(537709048)] = Class185.smethod_0(537709042); dictionary[Class185.smethod_0(537709026)] = Class185.smethod_0(537708828); dictionary[Class185.smethod_0(537708814)] = GClass0.string_2; taskAwaiter3 = new Class70(null, Class185.smethod_0(537692910), 10, false, true, null, false).method_8(Class185.smethod_0(537708856), dictionary, false).GetAwaiter(); if (!taskAwaiter3.IsCompleted) { num2 = 0; taskAwaiter2 = taskAwaiter3; this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <HttpResponseMessage>, Class23.Struct1>(ref taskAwaiter3, ref this); return; } } else { taskAwaiter3 = taskAwaiter2; taskAwaiter2 = default(TaskAwaiter <HttpResponseMessage>); num2 = -1; } Class173.form_0 = new GForm6(taskAwaiter3.GetResult().Headers.Location.ToString()); Class173.form_0.Show(); GForm1.webView_0.QueueScriptCall(Class185.smethod_0(537708884)); IL_150 :; } catch (Exception exception) { num2 = -2; this.asyncVoidMethodBuilder_0.SetException(exception); return; } num2 = -2; this.asyncVoidMethodBuilder_0.SetResult(); }
// Token: 0x060006F1 RID: 1777 RVA: 0x0002D104 File Offset: 0x0002B304 public static bool smethod_11(JsonReader jsonReader_0, out DateTime dateTime_0, out string string_0) { dateTime_0 = default(DateTime); string_0 = null; long?num; if (!Class70.smethod_12(jsonReader_0, out num, out string_0) || num == null) { string_0 = (string_0 ?? "Date constructor has no arguments."); return(false); } long?num2; if (!Class70.smethod_12(jsonReader_0, out num2, out string_0)) { return(false); } if (num2 != null) { List <long> list = new List <long> { num.Value, num2.Value }; long?num3; while (Class70.smethod_12(jsonReader_0, out num3, out string_0)) { if (num3 != null) { list.Add(num3.Value); } else { if (list.Count > 7) { string_0 = "Unexpected number of arguments when reading date constructor."; return(false); } while (list.Count < 7) { list.Add(0L); } dateTime_0 = new DateTime((int)list[0], (int)list[1] + 1, (list[2] == 0L) ? 1 : ((int)list[2]), (int)list[3], (int)list[4], (int)list[5], (int)list[6]); return(true); } } return(false); } dateTime_0 = Class25.smethod_11(num.Value); return(true); }
// Token: 0x060002DA RID: 730 RVA: 0x0001A44C File Offset: 0x0001864C void IAsyncStateMachine.MoveNext() { int num2; int num = num2; Class70 @class = this; HttpResponseMessage result; try { TaskAwaiter <HttpResponseMessage> taskAwaiter3; if (num == 0) { taskAwaiter3 = taskAwaiter2; taskAwaiter2 = default(TaskAwaiter <HttpResponseMessage>); num2 = -1; goto IL_AA; } IL_2F: if (httpResponseMessage_0.StatusCode < HttpStatusCode.MultipleChoices || httpResponseMessage_0.StatusCode > (HttpStatusCode)399) { result = httpResponseMessage_0; goto IL_103; } Uri uri = httpResponseMessage_0.Headers.Location; if (!uri.IsAbsoluteUri) { uri = new Uri(new Uri(string_0).GetLeftPart(UriPartial.Authority) + uri); } taskAwaiter3 = @class.httpClient_0.GetAsync(uri).GetAwaiter(); if (!taskAwaiter3.IsCompleted) { num2 = 0; taskAwaiter2 = taskAwaiter3; this.asyncTaskMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <HttpResponseMessage>, Class70.Struct20>(ref taskAwaiter3, ref this); return; } IL_AA: HttpResponseMessage result2 = taskAwaiter3.GetResult(); httpResponseMessage_0 = result2; goto IL_2F; } catch (Exception exception) { num2 = -2; this.asyncTaskMethodBuilder_0.SetException(exception); return; } IL_103: num2 = -2; this.asyncTaskMethodBuilder_0.SetResult(result); }
// Token: 0x06000138 RID: 312 RVA: 0x0000E0B8 File Offset: 0x0000C2B8 void IAsyncStateMachine.MoveNext() { int num = this.int_0; try { TaskAwaiter <HttpResponseMessage> awaiter; if (num != 0) { if (Class168.form_0 != null) { Class168.form_0.WindowState = FormWindowState.Normal; Class168.form_0.BringToFront(); goto IL_123; } Class168.dateTime_0 = Licenser.dateTime_0; Dictionary <string, string> dictionary = Class70.smethod_1(); dictionary["hosted_button_id"] = Class168.string_4; dictionary["cmd"] = "_s-xclick"; dictionary["on0"] = "License Key"; dictionary["os0"] = GClass0.string_2; awaiter = new Class70(null, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36", 10, false, true, null, false).method_8("https://www.paypal.com/cgi-bin/webscr", dictionary, false).GetAwaiter(); if (!awaiter.IsCompleted) { this.int_0 = 0; this.taskAwaiter_0 = awaiter; this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <HttpResponseMessage>, Class23.Struct1>(ref awaiter, ref this); return; } } else { awaiter = this.taskAwaiter_0; this.taskAwaiter_0 = default(TaskAwaiter <HttpResponseMessage>); this.int_0 = -1; } Class168.form_0 = new Renewal(awaiter.GetResult().Headers.Location.ToString()); Class168.form_0.Show(); MainWindow.webView_0.QueueScriptCall("swal('PayPal Opened', 'A PayPal browser has appeared, please complete the payment.', 'success', {timer: 3000})"); IL_123 :; } catch (Exception exception) { this.int_0 = -2; this.asyncVoidMethodBuilder_0.SetException(exception); return; } this.int_0 = -2; this.asyncVoidMethodBuilder_0.SetResult(); }
internal Class383(int A_0, Class70[] A_1) : this(A_0, A_1.Length, 0x10) { using (MemoryStream stream = new MemoryStream(this.byte_0)) { BinaryWriter writer = new BinaryWriter(stream); for (int i = 0; i < A_1.Length; i++) { Class70 class2 = A_1[i]; writer.Write(smethod_2(class2.class623_0)); writer.Write(smethod_2(class2.class623_1)); writer.Write(smethod_2(class2.class623_2)); writer.Write(smethod_2(class2.class623_3)); } } }
// Token: 0x06000056 RID: 86 RVA: 0x0000A6AC File Offset: 0x000088AC internal void method_1() { this.class4_0.method_11(this.bool_0); string text = DateTime.UtcNow.ToString(Class185.smethod_0(537711032), CultureInfo.InvariantCulture); long num = Convert.ToInt64(text.Replace(Class185.smethod_0(537711014), string.Empty).Replace(Class185.smethod_0(537711600), string.Empty).Replace(Class185.smethod_0(537711070), string.Empty).Replace(Class185.smethod_0(537696580), string.Empty)) * 27L; Dictionary <string, string> dictionary = Class70.smethod_1(); dictionary[Class185.smethod_0(537692633)] = num.ToString(); dictionary[Class185.smethod_0(537711062)] = text; dictionary[Class185.smethod_0(537700413)] = this.class4_0.jtoken_1[Class185.smethod_0(537700413)].ToString(); dictionary[Class185.smethod_0(537710986)] = this.class4_0.jtoken_1[Class185.smethod_0(537710986)].ToString(); dictionary[Class185.smethod_0(537711046)] = GForm3.string_0; dictionary[Class185.smethod_0(537711093)] = this.bool_0.ToString(); new Class70(null, Class185.smethod_0(537692910), 4, false, false, null, false).method_7(Class185.smethod_0(537711076), dictionary, false); }
// Token: 0x06000056 RID: 86 RVA: 0x00009D4C File Offset: 0x00007F4C internal void method_1() { this.class4_0.method_11(this.bool_0); string text = DateTime.UtcNow.ToString("dd/MM/yyyy HH:mm:ss.fff", CultureInfo.InvariantCulture); long num = Convert.ToInt64(text.Replace(" ", string.Empty).Replace("/", string.Empty).Replace(":", string.Empty).Replace(".", string.Empty)) * 27L; Dictionary <string, string> dictionary = Class70.smethod_1(); dictionary["token"] = num.ToString(); dictionary["timestamp"] = text; dictionary["store"] = this.class4_0.jtoken_1["store"].ToString(); dictionary["product"] = this.class4_0.jtoken_1["product"].ToString(); dictionary["customer"] = Licenser.string_0; dictionary["Declined"] = this.bool_0.ToString(); new Class70(null, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36", 4, false, false, null, false).method_7("https://www.cybersole.io/api/success", dictionary, false); }
// Token: 0x060006EB RID: 1771 RVA: 0x0002CE98 File Offset: 0x0002B098 public static Task smethod_5(TextWriter textWriter_0, string string_0, char char_0, bool bool_3, bool[] bool_4, StringEscapeHandling stringEscapeHandling_0, JsonTextWriter jsonTextWriter_0, char[] char_1, CancellationToken cancellationToken_0 = default(CancellationToken)) { if (cancellationToken_0.IsCancellationRequested) { return(cancellationToken_0.smethod_2()); } if (bool_3) { return(Class70.smethod_6(textWriter_0, string_0, char_0, bool_4, stringEscapeHandling_0, jsonTextWriter_0, char_1, cancellationToken_0)); } if (string.IsNullOrEmpty(string_0)) { return(cancellationToken_0.XwtFhhOhvo() ?? Class15.task_2); } return(Class70.smethod_9(textWriter_0, string_0, bool_4, stringEscapeHandling_0, jsonTextWriter_0, char_1, cancellationToken_0)); }
// Token: 0x06000162 RID: 354 RVA: 0x0000FBD4 File Offset: 0x0000DDD4 public void method_12() { for (;;) { try { this.class4_0.method_4("Processing payment", "orange", true, false); Dictionary <string, string> dictionary = Class70.smethod_1(); dictionary["token"] = this.string_9; HttpResponseMessage httpResponseMessage_ = this.class70_0.method_7("https://www.antonioli.eu/checkout/payment/process_token.json", dictionary, false); JObject jobject = httpResponseMessage_.smethod_0(); if (jobject.ContainsKey("error")) { if (jobject["error"].ToString().Contains("Autorizzazione negata")) { this.class4_0.method_9(true); this.class4_0.method_0("Payment Declined", "red", false); } else { this.class4_0.method_0("Payment error", "red", false); GClass3.smethod_0(httpResponseMessage_.smethod_3(), "error"); } } else if (httpResponseMessage_.smethod_3().Contains("gestpay_completion")) { this.string_12 = (string)jobject["redirect"]; } else { this.class4_0.method_0("Payment error", "red", false); GClass3.smethod_0(httpResponseMessage_.smethod_3(), "error"); } } catch (ThreadAbortException) { } catch { this.class4_0.method_4("Error processing payment", "#c2c2c2", true, false); Thread.Sleep(GClass0.int_0); continue; } break; } }
// Token: 0x06000162 RID: 354 RVA: 0x000112F8 File Offset: 0x0000F4F8 public void method_12() { for (;;) { try { this.class4_0.method_4(Class185.smethod_0(537660636), Class185.smethod_0(537700964), true, false); Dictionary <string, string> dictionary = Class70.smethod_1(); dictionary[Class185.smethod_0(537692633)] = this.string_9; HttpResponseMessage httpResponseMessage_ = this.class70_0.method_7(Class185.smethod_0(537660613), dictionary, false); JObject jobject = httpResponseMessage_.smethod_0(); if (jobject.ContainsKey(Class185.smethod_0(537710733))) { if (jobject[Class185.smethod_0(537710733)].ToString().Contains(Class185.smethod_0(537660472))) { this.class4_0.method_9(true); this.class4_0.method_0(Class185.smethod_0(537660452), Class185.smethod_0(537700909), false); } else { this.class4_0.method_0(Class185.smethod_0(537660491), Class185.smethod_0(537700909), false); GClass3.smethod_0(httpResponseMessage_.smethod_3(), Class185.smethod_0(537710733)); } } else if (httpResponseMessage_.smethod_3().Contains(Class185.smethod_0(537660543))) { this.string_12 = (string)jobject[Class185.smethod_0(537658264)]; } else { this.class4_0.method_0(Class185.smethod_0(537660491), Class185.smethod_0(537700909), false); GClass3.smethod_0(httpResponseMessage_.smethod_3(), Class185.smethod_0(537710733)); } } catch (ThreadAbortException) { } catch { this.class4_0.method_4(Class185.smethod_0(537658263), Class185.smethod_0(537700781), true, false); Thread.Sleep(GClass0.int_0); continue; } break; } }
// Token: 0x060006EC RID: 1772 RVA: 0x0002CEF8 File Offset: 0x0002B0F8 private static Task smethod_6(TextWriter textWriter_0, string string_0, char char_0, bool[] bool_3, StringEscapeHandling stringEscapeHandling_0, JsonTextWriter jsonTextWriter_0, char[] char_1, CancellationToken cancellationToken_0) { Task task = textWriter_0.smethod_4(char_0, cancellationToken_0); if (!task.smethod_8()) { return(Class70.smethod_7(task, textWriter_0, string_0, char_0, bool_3, stringEscapeHandling_0, jsonTextWriter_0, char_1, cancellationToken_0)); } if (!string.IsNullOrEmpty(string_0)) { task = Class70.smethod_9(textWriter_0, string_0, bool_3, stringEscapeHandling_0, jsonTextWriter_0, char_1, cancellationToken_0); if (task.smethod_8()) { return(textWriter_0.smethod_4(char_0, cancellationToken_0)); } } return(Class70.smethod_8(task, textWriter_0, char_0, cancellationToken_0)); }
internal Class70[] method_8() { if (this.int_5 == 0) { return(null); } using (MemoryStream stream = new MemoryStream(this.byte_0)) { Class70[] classArray = new Class70[this.int_3]; for (int i = 0; i < this.int_3; i++) { BinaryReader reader = new BinaryReader(stream); classArray[i] = new Class70 { class623_0 = smethod_3(reader.ReadInt32()), class623_1 = smethod_3(reader.ReadInt32()), class623_2 = smethod_3(reader.ReadInt32()), class623_3 = smethod_3(reader.ReadInt32()) }; } return(classArray); } }
// Token: 0x060002D0 RID: 720 RVA: 0x00017914 File Offset: 0x00015B14 public HttpResponseMessage method_15(string string_0, Dictionary <string, string> dictionary_0, bool bool_1) { HttpResponseMessage result; for (;;) { this.method_4(string_0, "PUT"); result = this.httpClient_0.PutAsync(string_0, Class70.smethod_2(dictionary_0)).Result; if (!result.smethod_5()) { break; } this.method_3(result.smethod_3(), string_0); } if (!bool_1) { return(result); } return(this.method_1(string_0, result)); }
// Token: 0x06000206 RID: 518 RVA: 0x00013BC0 File Offset: 0x00011DC0 void IAsyncStateMachine.MoveNext() { int num = this.int_0; try { TaskAwaiter <HttpResponseMessage> awaiter; if (num != 0) { awaiter = new Class70(null, Class185.smethod_0(537692910), 10, false, false, null, false).method_6(string.Format(Class185.smethod_0(537707120), new object[] { Class173.struct42_1.method_1(), Class173.struct42_0.method_1(), this.string_0, this.string_1 }), false).GetAwaiter(); if (!awaiter.IsCompleted) { this.int_0 = 0; this.taskAwaiter_0 = awaiter; this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <HttpResponseMessage>, GForm3.Struct3>(ref awaiter, ref this); return; } } else { awaiter = this.taskAwaiter_0; this.taskAwaiter_0 = default(TaskAwaiter <HttpResponseMessage>); this.int_0 = -1; } awaiter.GetResult().EnsureSuccessStatusCode(); } catch (Exception exception) { this.int_0 = -2; this.asyncVoidMethodBuilder_0.SetException(exception); return; } this.int_0 = -2; this.asyncVoidMethodBuilder_0.SetResult(); }
// Token: 0x06000608 RID: 1544 RVA: 0x00033568 File Offset: 0x00031768 public void method_6() { this.class4_0.method_4("Adding to cart", "#c2c2c2", true, false); for (;;) { try { Dictionary <string, string> dictionary = Class70.smethod_1(); dictionary["style"] = this.string_11; dictionary["size"] = this.string_10; dictionary["st"] = this.string_11; dictionary["s"] = this.string_10; JArray jarray = this.class70_0.method_7(this.string_3 + "/add.json", dictionary, false).smethod_2(); if (jarray.Count != 0 && (bool)jarray[0]["in_stock"]) { if ((bool)jarray[0]["in_stock"]) { this.class4_0.method_4("Successfully carted", "#c2c2c2", true, false); this.stopwatch_0.Restart(); break; } throw new Exception(); } else { this.class4_0.method_4("Waiting for restock", "#c2c2c2", true, false); Thread.Sleep(GClass0.int_0); } } catch (ThreadAbortException) { break; } catch { this.class4_0.method_4("Error adding to cart", "#c2c2c2", true, false); Thread.Sleep(GClass0.int_1); this.class4_0.method_4("Adding to cart", "#c2c2c2", true, false); } } }