public bool RepairDrone(GClass49.GClass75 hangar, GClass49.GClass52 drone) { GClass49.GClass54 gclass = hangar.ret.hangars.FirstOrDefault <GClass49.GClass54>(); if (gclass == null) { return(false); } string string_ = string.Format("{{\"params\":{{\"hi\":{0}}},\"repairCurrency\":\"{1}\",\"lootId\":\"{2}\",\"droneLevel\":{3},\"quantity\":1,\"itemId\":\"{4}\",\"action\":\"repairDrone\",\"repairPrice\":{5}}}", new object[] { gclass.Int32_0, drone.String_4, hangar.Map_0.IList_1[drone.Int32_0], drone.Int32_1, drone.String_0, drone.Int32_3 }); return(EquipmentAPI.HasNoError(this.Web.Post(GClass880.smethod_9(this.Web.Server), new Dictionary <string, string> { { "action", "repairDrone" }, { "params", string_.smethod_1() } }, "https://darkorbit.com", null))); }
public static string smethod_1(string string_1, string string_2 = null) { if (string_2 == null) { return(GClass880.smethod_0(string_1) + "/indexInternal.es"); } return(GClass880.smethod_0(string_1) + "/indexInternal.es?action=" + string_2); }
public void method_3() { if (this.IsLoggedIn) { this.Log.Info("Grabbing daily login"); if (this.Web.Get(GClass880.smethod_7(this.Web.Server), null).Data.IsSuccessStatusCode) { this.LastDailyLogin = DateTimeOffset.Now; } } }
public static string smethod_6(string string_1, string string_2, string string_3, string string_4 = "init") { return(string.Concat(new string[] { GClass880.smethod_0(string_1), "/flashinput/galaxyGates.php?userID=", string_2, "&action=", string_4, "&sid=", string_3 })); }
public void Load() { while (!Parallel.ForEach <GClass886>(PErkava.AllServersData, new ParallelOptions { MaxDegreeOfParallelism = 10 }, new Action <GClass886>(this.method_5)).IsCompleted) { Thread.Sleep(1); } GClass880.smethod_1(DateTimeOffset.Now); this.LoadingStatus = "Done"; base.Dispatcher.Invoke(new Action(this.method_0)); }
public GClass49.GClass76 GetHangar(int id) { string string_ = string.Format("{{\"params\":{{\"hi\":{0}}}}}", id); string text = this.Web.Post(GClass880.smethod_9(this.Web.Server), new Dictionary <string, string> { { "action", "getHangar" }, { "params", string_.smethod_1() } }, "https://darkorbit.com", null).Content.smethod_0(); GClass49.GClass76 gclass = JsonConvert.DeserializeObject <GClass49.GClass76>(text); JToken value = JObject.Parse(text).Value <JObject>("data").Value <JObject>("ret").GetValue("hangars"); IList <GClass49.GClass54> list = null; try { list = (List <GClass49.GClass54>)value.ToObject(typeof(List <GClass49.GClass54>)); } catch (Exception) { } GClass49.GClass76 result; try { if (list == null) { list = (from t in (Dictionary <int, GClass49.GClass54>)value.ToObject(typeof(Dictionary <int, GClass49.GClass54>)) select t.Value).ToList <GClass49.GClass54>(); } goto IL_F8; } catch (Exception) { result = null; } return(result); IL_F8: gclass.data.ret.hangars = list; gclass.Fill(); return(gclass); }
public GClass10.GClass27 GetDetails(GClass28.GClass32 hangar) { string string_ = string.Format("{{\"params\":{{\"lootId\":\"{0}\",\"hi\":{1},\"hangarId\":\"{2}\"}}}}", hangar.GClass31_0.GClass30_0, hangar.String_0, hangar.String_0); DarkOrbitWebAPI.Response response = this.Web.Post(GClass880.smethod_9(this.Web.Server), new Dictionary <string, string> { { "action", "getShipDetails" }, { "params", string_.smethod_1() } }, "https://darkorbit.com", null); return(this.ShipDetails = JsonConvert.DeserializeObject <GClass10.GClass27>(response.Content.smethod_0())); }
public GClass28.GClass48 GetHangarList() { string text = this.Web.Post(GClass880.smethod_9(this.Web.Server), new Dictionary <string, string> { { "params", "e30=" }, { "action", "getHangarList" } }, "https://darkorbit.com", null).Content.smethod_0(); GClass28.GClass48 gclass = JsonConvert.DeserializeObject <GClass28.GClass48>(text); JToken value = JObject.Parse(text).Value <JObject>("data").Value <JObject>("ret").GetValue("hangars"); IList <GClass28.GClass32> list = null; try { list = (List <GClass28.GClass32>)value.ToObject(typeof(List <GClass28.GClass32>)); } catch { } GClass28.GClass48 result; try { if (list == null) { list = (from t in (Dictionary <int, GClass28.GClass32>)value.ToObject(typeof(Dictionary <int, GClass28.GClass32>)) select t.Value).ToList <GClass28.GClass32>(); } goto IL_E4; } catch { result = null; } return(result); IL_E4: gclass.data.ret.hangars = list; return(this.Hangars = gclass); }
public bool ChangeHangar(string target) { if (this.Hangars == null) { return(false); } GClass28.GClass32 gclass = this.Hangars.data.ret.hangars.FirstOrDefault((GClass28.GClass32 t) => t.GClass31_0.GClass30_0.String_0 == target); if (gclass == null) { return(false); } if (gclass.Boolean_0) { return(true); } string string_ = gclass.String_0; string string_2 = string.Concat(new string[] { "{\"params\":{\"hi\":", string_, ",\"hangarId\":", string_, "}}" }); bool flag = EquipmentAPI.HasNoError(this.Web.Post(GClass880.smethod_9(this.Web.Server), new Dictionary <string, string> { { "action", "activateShip" }, { "params", string_2.smethod_1() } }, "https://darkorbit.com", null)); if (flag) { this.Hangars = null; } return(flag); }
private void method_1(object sender, RoutedEventArgs e) { BrowserWindow.smethod_0(); this.method_0(); object arg = this.Browser.GetType().InvokeMember("ActiveXInstance", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.GetProperty, null, this.Browser, new object[0]); if (BrowserWindow.< > o__19.< > p__0 == null) { BrowserWindow.< > o__19.< > p__0 = CallSite <Func <CallSite, object, bool, object> > .Create(Microsoft.CSharp.RuntimeBinder.Binder.SetMember(CSharpBinderFlags.None, "Silent", typeof(BrowserWindow), new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.Constant, null) })); } BrowserWindow.< > o__19.< > p__0.Target(BrowserWindow.< > o__19.< > p__0, arg, true); Uri uri = new Uri("https://" + this.Server + ".darkorbit.com"); foreach (object obj in this.Web.Cookies.GetCookies(uri)) { Cookie cookie = (Cookie)obj; Application.SetCookie(uri, cookie.Name + "=" + cookie.Value); } this.Browser.Navigate(GClass880.smethod_1(this.Server, null) ?? ""); }
private void GClass873_Closed(object sender, EventArgs e) { System.Windows.Forms.Timer timer = this.timer_0; if (timer != null) { timer.Stop(); } System.Windows.Forms.Timer timer2 = this.timer_0; if (timer2 != null) { timer2.Dispose(); } if (this.gclass880_0 != null) { this.gclass880_0.method_2(true); } GClass880 gclass = this.gclass880_0; if (gclass == null) { return; } gclass.Close(); }
public static string smethod_2(string string_1) { return(GClass880.smethod_1(string_1, "internalMapRevolution")); }
public static string smethod_5(string string_1) { return(GClass880.smethod_0(string_1) + "/ajax/shop.php"); }
public static string smethod_11(string string_1) { return(GClass880.smethod_0(string_1) + "/ajax/nanotechFactory.php"); }
public static string Maps(string server) { return(GClass880.smethod_0(server) + "/spacemap/xml/maps.php"); }
public static string smethod_10(string string_1) { return(GClass880.smethod_1(string_1, "internalNanoTechFactory")); }
public static string smethod_9(string string_1) { return(GClass880.smethod_0(string_1) + "/flashAPI/inventory.php"); }
public static string smethod_8(string string_1) { return(GClass880.smethod_0(string_1) + "/ajax/instances.php"); }
public static string smethod_7(string string_1) { return(GClass880.smethod_0(string_1) + "/flashAPI/dailyLogin.php?doBook=1"); }
public static string smethod_4(string string_1) { return(GClass880.smethod_1(string_1, "externalLogout")); }