/// <summary> /// Imports data from the given character clone information. /// </summary> /// <param name="clones">The serialized character clone information</param> internal void Import(EsiAPIClones clones) { // Information about clone jumping and clone moving JumpCloneLastJumpDate = clones.LastCloneJump; RemoteStationDate = clones.LastStationChange; HomeStationID = clones.HomeLocation.LocationID; ImplantSets.Import(clones); }
/// <summary> /// Imports data from the given character sheet informations. /// </summary> /// <param name="serial">The serialized character sheet</param> /// <exception cref="System.ArgumentNullException">serial</exception> protected void Import(SerializableSettingsCharacter serial) { serial.ThrowIfNull(nameof(serial)); Import((SerializableCharacterSheetBase)serial); // Implants ImplantSets.Import(serial.ImplantSets); }
/// <summary> /// Imports data from the given character sheet informations. /// </summary> /// <param name="serial">The serialized character sheet</param> private void Import(SerializableAPICharacterSheet serial) { Import((SerializableCharacterSheetBase)serial); // Implants if (serial.Implants.Any() || serial.JumpClones.Any()) { ImplantSets.Import(serial); } }
/// <summary> /// Imports data from the given character clone information. /// </summary> /// <param name="clones">The serialized character clone information</param> internal void Import(EsiAPIClones clones) { var newClones = new SerializableImplantSetCollection(); // Information about clone jumping and clone moving JumpCloneLastJumpDate = clones.LastCloneJump; RemoteStationDate = clones.LastStationChange; HomeStationID = clones.HomeLocation.LocationID; ImplantSets.Import(newClones); }
/// <summary> /// Imports data from the given character clone information. /// </summary> /// <param name="result">The serialized character clone information</param> internal void Import(EsiResult <EsiAPIClones> result) { var clones = result.Result; var newClones = new SerializableImplantSetCollection(); // Remap info JumpCloneLastJumpDate = clones.LastCloneJump; RemoteStationDate = clones.LastStationChange; HomeStationID = clones.HomeLocation.LocationID; ImplantSets.Import(newClones); EveMonClient.OnCharacterInfoUpdated(this); }