public static void MapJumpsExample() { MapJumps mapJumps = EveApi.GetMapJumps(); foreach (MapJumps.MapSystemItem system in mapJumps.MapSystemJumps) { Console.WriteLine("System: {0} Number of Jumps: {1}", system.SolarSystemId, system.ShipJumps); } }
public void JumpsPersist() { ResponseCache.Clear(); MapJumps mapJumps = EveApi.GetMapJumps(); ResponseCache.Save("ResponseCache.xml"); ResponseCache.Clear(); ResponseCache.Load("ResponseCache.xml"); MapJumps cachedMapJumps = EveApi.GetMapJumps(); Assert.AreEqual(mapJumps.CachedUntilLocal, cachedMapJumps.CachedUntilLocal); for (int i = 0; i < mapJumps.MapSystemJumps.Length; i++) { Assert.AreEqual(mapJumps.MapSystemJumps[i].ShipJumps, cachedMapJumps.MapSystemJumps[i].ShipJumps); Assert.AreEqual(mapJumps.MapSystemJumps[i].SolarSystemId, cachedMapJumps.MapSystemJumps[i].SolarSystemId); } }