not sure whether the CrestIndustrySystems.cs format was changed by CCP or not, however the one on git doesn#t work. I left the old code commented out in the following code to have a reference. The new one works as of right now:
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace eZet.EveLib.Modules.Models
{
/// <summary>
/// Represents the response for Industry Systems in CREST
/// </summary>
[DataContract]
public class CrestIndustrySystems : CrestCollectionResponse
{
[DataMember(Name = "items")]
public List<SolarSystemEntry> SolarSystems { get; set; }
[DataContract]
public class SolarSystemEntry
{
/// <summary>
/// The solar system
/// </summary>
[DataMember(Name = "solarSystem")]
public CrestNamedEntity SolarSystem { get; set; }
/// <summary>
/// A list of system costs
/// </summary>
[DataMember(Name = "systemCostIndices")]
public List<SystemCostEntry> SystemCostIndices { get; set; }
}
[DataContract]
public class SystemCostEntry
{
/// <summary>
/// The cost index
/// </summary>
[DataMember(Name = "costIndex")]
public decimal CostIndex { get; set; }
/// <summary>
/// The activity ID
/// </summary>
[DataMember(Name = "activityID")]
public int ActivityId { get; set; }
/// <summary>
/// The activity name
/// </summary>
[DataMember(Name = "activityName")]
public string ActivityName { get; set; }
}
/*
/// <summary>
/// The solar system
/// </summary>
[DataMember(Name = "solarSystem")]
public List<SolarSystemEntry> SolarSystems { get; set; }
/// <summary>
/// Represesents a solar system for a SystemCostEntry
/// </summary>
[DataContract]
public class SolarSystemEntry
{
/// <summary>
/// The solar system
/// </summary>
public CrestNamedEntity SolarSystem { get; set; }
/// <summary>
/// A list of system costs
/// </summary>
public List<SystemCostEntry> SystemCostIndices { get; set; }
}
/// <summary>
/// Represents a system cost index in CREST Industry Systems collection
/// </summary>
[DataContract]
public class SystemCostEntry : CrestNamedEntity
{
/// <summary>
/// The cost index
/// </summary>
[DataMember(Name = "costIndex")]
public float CostIndex { get; set; }
/// <summary>
/// The activity ID
/// </summary>
[DataMember(Name = "activityID")]
public int ActivityId { get; set; }
/// <summary>
/// The activity name
/// </summary>
[DataMember(Name = "activityName")]
public string ActivityName { get; set; }
}
*/
}
}
Hi,
not sure whether the CrestIndustrySystems.cs format was changed by CCP or not, however the one on git doesn#t work. I left the old code commented out in the following code to have a reference. The new one works as of right now: