private void EnhancementHook(Session oS, bool IsWeapon) { if (IsWeapon) { this.WeaponReadStart(); } else { this.CharReadStart(); } JObject jsonFull = JObject.Parse(oS.GetResponseBodyAsString()) as JObject; dynamic test = jsonFull; var list = test.param as JObject; expInfo = new ExpInfo { exp = (int)list["exp"], next_exp = (int)list["next_exp"], level = (int)list["level"], max_level = (int)list["max_level"], remain_next_exp = (int)list["remain_next_exp"], }; if (IsWeapon) { this.WeaponReadEnd(); } else { this.CharReadEnd(); } }
private void EnhancementHook(Session oS, bool IsWeapon) { if (IsWeapon) this.WeaponReadStart(); else this.CharReadStart(); JObject jsonFull = JObject.Parse(oS.GetResponseBodyAsString()) as JObject; dynamic test = jsonFull; var list = test.param as JObject; expInfo = new ExpInfo { exp = (int)list["exp"], next_exp = (int)list["next_exp"], level = (int)list["level"], max_level = (int)list["max_level"], remain_next_exp = (int)list["remain_next_exp"], }; if (IsWeapon) this.WeaponReadEnd(); else this.CharReadEnd(); }