public SerializableAPIWalletTransactions ToXMLItem() { var ret = new SerializableAPIWalletTransactions(); foreach (var entry in this) { ret.WalletTransactions.Add(entry.ToXMLItem()); } return(ret); }
/// <summary> /// Exports the WalletTransactions to the cached file. /// </summary> internal void ExportToCacheFile() { // Save the file to the cache string filename = m_character.Name + "-" + ESIAPICharacterMethods.WalletTransactions; var exported = new SerializableAPIWalletTransactions(); foreach (WalletTransaction tx in Items) { exported.WalletTransactions.Add(tx.Export()); } LocalXmlCache.SaveAsync(filename, Util.SerializeToXmlDocument(exported)). ConfigureAwait(false); // TODO Fire event to update the UI ? // EveMonClient.OnCharacterKillLogUpdated(m_ccpCharacter); }