/// <summary> /// Processes the queried character's personal industry jobs. /// </summary> /// <param name="result"></param> /// <remarks>This method is sensitive to which "issued for" jobs gets queried first</remarks> private void OnIndustryJobsUpdated(EsiAPIIndustryJobs result) { var target = m_ccpCharacter; // Character may have been deleted since we queried if (target != null) { target.CharacterIndustryJobs.Import(result, IssuedFor.Character); EveMonClient.OnCharacterIndustryJobsUpdated(target); } }
/// <summary> /// Processes the queried character's corporation industry jobs. /// </summary> /// <param name="result"></param> /// <remarks>This method is sensitive to which "issued for" jobs gets queried first</remarks> private void OnIndustryJobsUpdated(EsiAPIIndustryJobs result) { var target = m_ccpCharacter; // Character may have been deleted since we queried if (target != null) { // Mark all jobs as corporation issued target.CorporationIndustryJobs.Import(result, IssuedFor.Corporation); EveMonClient.OnCorporationIndustryJobsUpdated(target); } }
/// <summary> /// Processes the queried character's personal industry jobs. /// </summary> /// <param name="result"></param> /// <remarks>This method is sensitive to which "issued for" jobs gets queried first</remarks> private void OnIndustryJobsUpdated(EsiAPIIndustryJobs result) { var target = m_ccpCharacter; // Character may have been deleted since we queried if (target != null) { var jobs = result.ToXMLItem().Jobs; foreach (var job in jobs) { job.IssuedFor = IssuedFor.Character; } target.CharacterIndustryJobs.Import(jobs); EveMonClient.OnCharacterIndustryJobsUpdated(target); } }