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(GClass829.smethod_8(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(GClass829.smethod_0(string_1) + "/indexInternal.es"); } return(GClass829.smethod_0(string_1) + "/indexInternal.es?action=" + string_2); }
public async Task method_1() { string sUrl = GClass829.smethod_1(this.Web.Server, "internalSkylab"); DarkOrbitWebAPI.Response response = await this.Web.GetAsync(sUrl, null); response.Data.EnsureSuccessStatusCode(); this.method_0().method_9(response.Content); }
public void method_3() { if (this.IsLoggedIn) { this.Log.Info("Grabbing daily login"); if (this.Web.Get(GClass829.smethod_6(this.Web.Server), null).Data.IsSuccessStatusCode) { this.LastDailyLogin = DateTimeOffset.Now; } } }
public static string oemHlkhhlQr(string string_1, string string_2, string string_3, string string_4 = "init") { return(string.Concat(new string[] { GClass829.smethod_0(string_1), "/flashinput/galaxyGates.php?userID=", string_2, "&action=", string_4, "&sid=", string_3 })); }
public GClass49.GClass76 GetHangar(int id) { string string_ = string.Format("{{\"params\":{{\"hi\":{0}}}}}", id); string text = this.Web.Post(GClass829.smethod_8(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(GClass829.smethod_8(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(GClass829.smethod_8(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(GClass829.smethod_8(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 enoHxSomUi(object sender, RoutedEventArgs e) { BrowserWindow.dKnHyFdWmi(); 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(GClass829.smethod_1(this.Server, null) ?? ""); }
public static string smethod_5(string string_1) { return(GClass829.smethod_0(string_1) + "/ajax/shop.php"); }
public static string Maps(string server) { return(GClass829.smethod_0(server) + "/spacemap/xml/maps.php"); }
public static string smethod_2(string string_1) { return(GClass829.smethod_1(string_1, "internalMapRevolution")); }
public static string smethod_9(string string_1) { return(GClass829.smethod_1(string_1, "internalNanoTechFactory")); }
public static string smethod_10(string string_1) { return(GClass829.smethod_0(string_1) + "/ajax/nanotechFactory.php"); }
public static string smethod_8(string string_1) { return(GClass829.smethod_0(string_1) + "/flashAPI/inventory.php"); }
public static string smethod_7(string string_1) { return(GClass829.smethod_0(string_1) + "/ajax/instances.php"); }
public static string smethod_6(string string_1) { return(GClass829.smethod_0(string_1) + "/flashAPI/dailyLogin.php?doBook=1"); }
public static string smethod_4(string string_1) { return(GClass829.smethod_1(string_1, "externalLogout")); }
public async Task <bool> method_2(int int_0, int int_1) { Dictionary <string, string> data = new Dictionary <string, string> { { "reloadToken", this.Web.ReloadToken }, { "action", "internalSkylab" }, { "subaction", "startTransport" }, { "mode", "normal" }, { "construction", "TRANSPORT_MODULE" }, { "count_prometium", "0" }, { "count_endurium", "0" }, { "count_terbium", "0" }, { "count_prometid", "0" }, { "count_duranium", "0" }, { "count_xenomit", "0" }, { "count_promerium", string.Format("{0}", int_0) }, { "count_seprom", string.Format("{0}", int_1) } }; DarkOrbitWebAPI.Response response = await this.Web.PostAsync(GClass829.smethod_1(this.Web.Server, null), data, GClass829.smethod_1(this.Web.Server, "internalSkylab"), null); bool result; if (!response.Data.IsSuccessStatusCode) { result = false; } else { this.method_0().method_9(response.Content); result = (this.method_0().method_10("transportModule").method_0() != null); } return(result); }