/// <summary> /// Imports the kill logs from a cached file. /// </summary> public void ImportFromCacheFile() { var result = LocalXmlCache.Load <SerializableAPIKillLog>(m_ccpCharacter.Name + "-" + ESIAPICharacterMethods.KillLog); if (result != null) { Import(result.Kills); } }
/// <summary> /// Imports the WalletTransactions from a cached file. /// </summary> internal void ImportFromCacheFile() { var result = LocalXmlCache.Load <SerializableAPIWalletTransactions>(m_character.Name + "-" + ESIAPICharacterMethods.WalletTransactions); if (result != null) { Import(result.WalletTransactions); } }
/// <summary> /// Deserialize the file and import the stats. /// </summary> private static void Import() { // Exit if we have already imported or are in the process of importing the list if (!s_loaded && !s_queryPending && !s_isImporting) { var result = LocalXmlCache.Load <SerializableAPIEveFactionalWarfareStats>( Filename, true); if (result == null) { s_nextCheckTime = DateTime.UtcNow; } else { // Deserialize the result Import(result); } } }