/// <summary> /// 从某场战斗中获取该场以所有技能事件发生总表的信息 /// </summary> private string GetBuffFromFightEvent() { string nextPageLogs = "0"; string tempJsonEventLogs = string.Empty; string jsonEventLogs = string.Empty; while (Convert.ToDecimal(nextPageLogs) < Convert.ToDecimal(this.fightEndTime)) { if (nextPageLogs == "0") { tempJsonEventLogs = FFlogsAPI.GetFightEvent(fightCode, this.fightStartTime, this.fightEndTime); } else { tempJsonEventLogs = FFlogsAPI.GetFightEvent(fightCode, nextPageLogs, this.fightEndTime); } nextPageLogs = DataPublic.GetJsonSerializeString(tempJsonEventLogs, "nextPageTimestamp"); if (nextPageLogs == string.Empty) { nextPageLogs = this.fightEndTime; } jsonEventLogs += DataPublic.GetJsonSerializeString(tempJsonEventLogs, "events"); } return(jsonEventLogs.Replace("][", ",")); }
private void GetApiJsonString() { this.jsonGetFight = FFlogsAPI.GetFight(fightCode); FFLogsAPIFightModel fightInfo = JsonConvert.DeserializeObject <FFLogsAPIFightModel>(this.jsonGetFight); //JObject jArray = (JObject)JsonConvert.DeserializeObject(DataPublic.GetJsonSerializeString(this.jsonGetFight, "fights")); this.fightStartTime = fightInfo.fights[(int)this.fightID - 1].start_time; this.fightEndTime = fightInfo.fights[(int)this.fightID - 1].end_time; }
/// <summary> /// 从某场战斗中获取该场以能力技为限制的信息 /// </summary> private void GetBuffFromFight() { string jsonBuffLogs = FFlogsAPI.GetAllResoucesByAbilityID(fightCode, buffStartTime, buffEndTime, buffAbilityID); }