Exemple #1
0
 // Token: 0x060000AB RID: 171 RVA: 0x0000BADC File Offset: 0x00009CDC
 public void method_1()
 {
     this.class4_0.method_4(Class185.smethod_0(537663207), Class185.smethod_0(537700781), true, false);
     for (;;)
     {
         try
         {
             HttpResponseMessage httpResponseMessage = this.class4_0.method_1(string.Format(Class185.smethod_0(537689681), this.string_0, this.string_3), true, this.jobject_0);
             if (!httpResponseMessage.smethod_3().Contains(Class185.smethod_0(537689502)))
             {
                 httpResponseMessage.EnsureSuccessStatusCode();
                 JObject jobject = httpResponseMessage.smethod_0();
                 this.class4_0.method_7(jobject[Class185.smethod_0(537712143)].ToString(), Class185.smethod_0(537700781));
                 if (this.bool_0)
                 {
                     JToken[] array = jobject[Class185.smethod_0(537689535)].Where(new Func <JToken, bool>(Class13.Class14.class14_0.method_0)).ToArray <JToken>();
                     if (array.Length == 0)
                     {
                         this.class4_0.method_4(Class185.smethod_0(537663011), Class185.smethod_0(537700781), true, false);
                         Thread.Sleep(GClass0.int_0);
                         continue;
                     }
                     JToken jtoken = array[GForm1.random_0.Next(0, array.Length)];
                     this.class4_0.method_5(jtoken[Class185.smethod_0(537712143)].ToString());
                     this.string_2 = jtoken[Class185.smethod_0(537710986)][Class185.smethod_0(537657721)].ToString();
                 }
                 else
                 {
                     JToken jtoken2 = jobject[Class185.smethod_0(537689535)].FirstOrDefault(new Func <JToken, bool>(this.method_10));
                     if (jtoken2 == null)
                     {
                         throw new Exception();
                     }
                     if (jtoken2[Class185.smethod_0(537710986)][Class185.smethod_0(537690097)].ToString() != Class185.smethod_0(537690083))
                     {
                         this.class4_0.method_4(Class185.smethod_0(537663011), Class185.smethod_0(537700781), true, false);
                         Thread.Sleep(GClass0.int_0);
                         continue;
                     }
                     this.class4_0.method_5(jtoken2[Class185.smethod_0(537712143)].ToString());
                     this.string_2 = jtoken2[Class185.smethod_0(537710986)][Class185.smethod_0(537657721)].ToString();
                 }
                 Class30.smethod_1((int)this.jtoken_0[Class185.smethod_0(537703519)], string.Format(Class185.smethod_0(537689681), this.string_0, this.string_3));
                 break;
             }
             Thread.Sleep(GClass0.int_0);
             this.class4_0.method_4(Class185.smethod_0(537663207), Class185.smethod_0(537700781), true, false);
         }
         catch (ThreadAbortException)
         {
             break;
         }
         catch
         {
             Thread.Sleep(GClass0.int_0);
             this.class4_0.method_4(Class185.smethod_0(537663207), Class185.smethod_0(537700781), true, false);
         }
     }
 }
Exemple #2
0
 // Token: 0x060000AB RID: 171 RVA: 0x0000B010 File Offset: 0x00009210
 public void method_1()
 {
     this.class4_0.method_4("Waiting for product", "#c2c2c2", true, false);
     for (;;)
     {
         try
         {
             HttpResponseMessage httpResponseMessage = this.class4_0.method_1(string.Format("https://prod.jdgroupmesh.cloud/stores/{0}/products/{1}", this.string_0, this.string_3), true, this.jobject_0);
             if (!httpResponseMessage.smethod_3().Contains("Product could not be found"))
             {
                 httpResponseMessage.EnsureSuccessStatusCode();
                 JObject jobject = httpResponseMessage.smethod_0();
                 this.class4_0.method_7(jobject["name"].ToString(), "#c2c2c2");
                 if (this.bool_0)
                 {
                     JToken[] array = jobject["sortedOptions"].Where(new Func <JToken, bool>(Class13.Class14.class14_0.method_0)).ToArray <JToken>();
                     if (array.Length == 0)
                     {
                         this.class4_0.method_4("Waiting for restock", "#c2c2c2", true, false);
                         Thread.Sleep(GClass0.int_0);
                         continue;
                     }
                     JToken jtoken = array[MainWindow.random_0.Next(0, array.Length)];
                     this.class4_0.method_5(jtoken["name"].ToString());
                     this.string_2 = jtoken["product"]["SKU"].ToString();
                 }
                 else
                 {
                     JToken jtoken2 = jobject["sortedOptions"].FirstOrDefault(new Func <JToken, bool>(this.method_10));
                     if (jtoken2 == null)
                     {
                         throw new Exception();
                     }
                     if (jtoken2["product"]["stockStatus"].ToString() != "IN STOCK")
                     {
                         this.class4_0.method_4("Waiting for restock", "#c2c2c2", true, false);
                         Thread.Sleep(GClass0.int_0);
                         continue;
                     }
                     this.class4_0.method_5(jtoken2["name"].ToString());
                     this.string_2 = jtoken2["product"]["SKU"].ToString();
                 }
                 Class30.smethod_1((int)this.jtoken_0["id"], string.Format("https://prod.jdgroupmesh.cloud/stores/{0}/products/{1}", this.string_0, this.string_3));
                 break;
             }
             Thread.Sleep(GClass0.int_0);
             this.class4_0.method_4("Waiting for product", "#c2c2c2", true, false);
         }
         catch (ThreadAbortException)
         {
             break;
         }
         catch
         {
             Thread.Sleep(GClass0.int_0);
             this.class4_0.method_4("Waiting for product", "#c2c2c2", true, false);
         }
     }
 }
Exemple #3
0
 // Token: 0x06000043 RID: 67 RVA: 0x00008EC0 File Offset: 0x000070C0
 public void method_0(string string_3, string string_4, bool bool_2)
 {
     if (bool_2)
     {
         GForm1.webView_0.QueueScriptCall(string.Format(Class185.smethod_0(537699958), this.jtoken_1[Class185.smethod_0(537703519)]));
     }
     this.method_4(string_3, string_4, true, true);
     this.bool_0 = true;
     Class30.smethod_1((int)this.jtoken_1[Class185.smethod_0(537703519)], null);
     Thread.CurrentThread.Abort();
 }
Exemple #4
0
 // Token: 0x06000043 RID: 67 RVA: 0x0000892C File Offset: 0x00006B2C
 public void method_0(string string_3, string string_4, bool bool_2)
 {
     if (bool_2)
     {
         MainWindow.webView_0.QueueScriptCall(string.Format("updateButton({0},false)", this.jtoken_1["id"]));
     }
     this.method_4(string_3, string_4, true, true);
     this.bool_0 = true;
     Class30.smethod_1((int)this.jtoken_1["id"], null);
     Thread.CurrentThread.Abort();
 }
Exemple #5
0
 // Token: 0x06000223 RID: 547 RVA: 0x00013040 File Offset: 0x00011240
 public void method_0()
 {
     try
     {
         this.class4_0.method_8();
         Task task = this.method_1();
         this.method_2();
         Class30.smethod_1((int)this.jtoken_1["id"], string.Format("https://www.footlocker.eu/INTERSHOP/web/WFS/Footlocker-Footlocker_GB-Site/en_GB/-/GBP/ViewProduct-ProductVariationSelect?BaseSKU={0}&InventoryServerity=ProductDetail", this.string_1));
         task.Wait();
         this.method_3();
         this.method_4();
         this.method_5();
         this.method_6();
     }
     catch
     {
     }
     finally
     {
         this.class4_0.method_0("Stopped", "red", true);
     }
 }
Exemple #6
0
 // Token: 0x06000223 RID: 547 RVA: 0x00014BBC File Offset: 0x00012DBC
 public void method_0()
 {
     try
     {
         this.class4_0.method_8();
         Task task = this.method_1();
         this.method_2();
         Class30.smethod_1((int)this.jtoken_1[Class185.smethod_0(537703519)], string.Format(Class185.smethod_0(537658111), this.string_1));
         task.Wait();
         this.method_3();
         this.method_4();
         this.method_5();
         this.method_6();
     }
     catch
     {
     }
     finally
     {
         this.class4_0.method_0(Class185.smethod_0(537663178), Class185.smethod_0(537700909), true);
     }
 }
Exemple #7
0
        // Token: 0x060005B6 RID: 1462 RVA: 0x00034928 File Offset: 0x00032B28
        internal void method_0()
        {
            JObject jobject = JObject.Parse(this.jsextInvokeArgs_0.Arguments.First <object>().ToString());

            foreach (KeyValuePair <string, JToken> keyValuePair in jobject)
            {
                JToken value = keyValuePair.Value;
                if (GForm1.dictionary_0.ContainsKey((int)value[Class185.smethod_0(537703519)]))
                {
                    object arg = GForm1.dictionary_0[(int)value[Class185.smethod_0(537703519)]][Class185.smethod_0(537700090)];
                    if (Class116.Class120.callSite_0 == null)
                    {
                        Class116.Class120.callSite_0 = CallSite <Func <CallSite, object, Thread> > .Create(Binder.Convert(CSharpBinderFlags.ConvertExplicit, typeof(Thread), typeof(Class116)));
                    }
                    if (Class116.Class120.callSite_0.Target(Class116.Class120.callSite_0, arg).IsAlive)
                    {
                        GForm1.dictionary_0[(int)value[Class185.smethod_0(537703519)]][Class185.smethod_0(537700087)] = true;
                        GForm1.webView_0.QueueScriptCall(string.Format(Class185.smethod_0(537700066), value[Class185.smethod_0(537703519)]));
                    }
                }
            }
            foreach (KeyValuePair <string, JToken> keyValuePair2 in jobject)
            {
                JToken value2 = keyValuePair2.Value;
                if (GForm1.dictionary_0.ContainsKey((int)value2[Class185.smethod_0(537703519)]))
                {
                    object arg2 = GForm1.dictionary_0[(int)value2[Class185.smethod_0(537703519)]][Class185.smethod_0(537700090)];
                    if (Class116.Class120.callSite_1 == null)
                    {
                        Class116.Class120.callSite_1 = CallSite <Func <CallSite, object, Thread> > .Create(Binder.Convert(CSharpBinderFlags.ConvertExplicit, typeof(Thread), typeof(Class116)));
                    }
                    if (Class116.Class120.callSite_1.Target(Class116.Class120.callSite_1, arg2).IsAlive)
                    {
                        Class30.smethod_1((int)value2[Class185.smethod_0(537703519)], null);
                        if (Class116.Class120.callSite_2 == null)
                        {
                            Class116.Class120.callSite_2 = CallSite <Action <CallSite, object> > .Create(Binder.InvokeMember(CSharpBinderFlags.ResultDiscarded, Class185.smethod_0(537699894), null, typeof(Class116), new CSharpArgumentInfo[]
                            {
                                CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
                            }));
                        }
                        Class116.Class120.callSite_2.Target(Class116.Class120.callSite_2, arg2);
                    }
                }
            }
            foreach (KeyValuePair <string, JToken> keyValuePair3 in jobject)
            {
                JToken value3 = keyValuePair3.Value;
                if (GForm1.dictionary_0.ContainsKey((int)value3[Class185.smethod_0(537703519)]))
                {
                    object arg3 = GForm1.dictionary_0[(int)value3[Class185.smethod_0(537703519)]][Class185.smethod_0(537700090)];
                    if (Class116.Class120.callSite_3 == null)
                    {
                        Class116.Class120.callSite_3 = CallSite <Func <CallSite, object, Thread> > .Create(Binder.Convert(CSharpBinderFlags.ConvertExplicit, typeof(Thread), typeof(Class116)));
                    }
                    if (Class116.Class120.callSite_3.Target(Class116.Class120.callSite_3, arg3).IsAlive)
                    {
                        if (Class116.Class120.callSite_4 == null)
                        {
                            Class116.Class120.callSite_4 = CallSite <Action <CallSite, object> > .Create(Binder.InvokeMember(CSharpBinderFlags.ResultDiscarded, Class185.smethod_0(537699874), null, typeof(Class116), new CSharpArgumentInfo[]
                            {
                                CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
                            }));
                        }
                        Class116.Class120.callSite_4.Target(Class116.Class120.callSite_4, arg3);
                        GForm1.webView_0.QueueScriptCall(string.Format(Class185.smethod_0(537699933), value3[Class185.smethod_0(537703519)].ToString()));
                        GForm1.webView_0.QueueScriptCall(string.Format(Class185.smethod_0(537699958), value3[Class185.smethod_0(537703519)].ToString()));
                    }
                    GForm1.dictionary_0.Remove((int)value3[Class185.smethod_0(537703519)]);
                }
            }
        }
Exemple #8
0
 // Token: 0x0600022F RID: 559 RVA: 0x000111A0 File Offset: 0x0000F3A0
 public static string smethod_0(string string_0, DataProtectionScope dataProtectionScope_0, byte[] byte_0 = null)
 {
     return(Class30.smethod_1(Encoding.Default.GetBytes(string_0), dataProtectionScope_0, byte_0));
 }
Exemple #9
0
        // Token: 0x06000596 RID: 1430 RVA: 0x0002F858 File Offset: 0x0002DA58
        internal void method_0()
        {
            JObject jobject = JObject.Parse(this.jsextInvokeArgs_0.Arguments.First <object>().ToString());

            foreach (KeyValuePair <string, JToken> keyValuePair in jobject)
            {
                JToken value = keyValuePair.Value;
                if (MainWindow.dictionary_0.ContainsKey((int)value["id"]))
                {
                    object arg = MainWindow.dictionary_0[(int)value["id"]]["thread"];
                    if (Class111.Class115.callSite_0 == null)
                    {
                        Class111.Class115.callSite_0 = CallSite <Func <CallSite, object, Thread> > .Create(Binder.Convert(CSharpBinderFlags.ConvertExplicit, typeof(Thread), typeof(Class111)));
                    }
                    if (Class111.Class115.callSite_0.Target(Class111.Class115.callSite_0, arg).IsAlive)
                    {
                        MainWindow.dictionary_0[(int)value["id"]]["stop"] = true;
                        MainWindow.webView_0.QueueScriptCall(string.Format("updateTable('Stopping...','DARKORANGE',{0},7)", value["id"]));
                    }
                }
            }
            foreach (KeyValuePair <string, JToken> keyValuePair2 in jobject)
            {
                JToken value2 = keyValuePair2.Value;
                if (MainWindow.dictionary_0.ContainsKey((int)value2["id"]))
                {
                    object arg2 = MainWindow.dictionary_0[(int)value2["id"]]["thread"];
                    if (Class111.Class115.callSite_1 == null)
                    {
                        Class111.Class115.callSite_1 = CallSite <Func <CallSite, object, Thread> > .Create(Binder.Convert(CSharpBinderFlags.ConvertExplicit, typeof(Thread), typeof(Class111)));
                    }
                    if (Class111.Class115.callSite_1.Target(Class111.Class115.callSite_1, arg2).IsAlive)
                    {
                        Class30.smethod_1((int)value2["id"], null);
                        if (Class111.Class115.callSite_2 == null)
                        {
                            Class111.Class115.callSite_2 = CallSite <Action <CallSite, object> > .Create(Binder.InvokeMember(CSharpBinderFlags.ResultDiscarded, "Abort", null, typeof(Class111), new CSharpArgumentInfo[]
                            {
                                CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
                            }));
                        }
                        Class111.Class115.callSite_2.Target(Class111.Class115.callSite_2, arg2);
                    }
                }
            }
            foreach (KeyValuePair <string, JToken> keyValuePair3 in jobject)
            {
                JToken value3 = keyValuePair3.Value;
                if (MainWindow.dictionary_0.ContainsKey((int)value3["id"]))
                {
                    object arg3 = MainWindow.dictionary_0[(int)value3["id"]]["thread"];
                    if (Class111.Class115.callSite_3 == null)
                    {
                        Class111.Class115.callSite_3 = CallSite <Func <CallSite, object, Thread> > .Create(Binder.Convert(CSharpBinderFlags.ConvertExplicit, typeof(Thread), typeof(Class111)));
                    }
                    if (Class111.Class115.callSite_3.Target(Class111.Class115.callSite_3, arg3).IsAlive)
                    {
                        if (Class111.Class115.callSite_4 == null)
                        {
                            Class111.Class115.callSite_4 = CallSite <Action <CallSite, object> > .Create(Binder.InvokeMember(CSharpBinderFlags.ResultDiscarded, "Join", null, typeof(Class111), new CSharpArgumentInfo[]
                            {
                                CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
                            }));
                        }
                        Class111.Class115.callSite_4.Target(Class111.Class115.callSite_4, arg3);
                        MainWindow.webView_0.QueueScriptCall(string.Format("updateTable('Stopped','red',{0},7)", value3["id"].ToString()));
                        MainWindow.webView_0.QueueScriptCall(string.Format("updateButton({0},false)", value3["id"].ToString()));
                    }
                    MainWindow.dictionary_0.Remove((int)value3["id"]);
                }
            }
        }