/// <summary> /// Initializes a new instance of the <see cref="WalletJournal" /> class. /// </summary> /// <param name="src">The SRC.</param> /// <exception cref="System.ArgumentNullException">src</exception> internal WalletJournal(SerializableWalletJournalListItem src) { src.ThrowIfNull(nameof(src)); m_refTypeID = src.RefTypeID; m_taxReceiverID = src.TaxReceiverID; ID = src.ID; Date = src.Date; Amount = src.Amount; Balance = src.Balance; Issuer = src.OwnerName1; Recipient = src.OwnerName2; TaxAmount = src.TaxAmount; Reason = ParseReason(src.Reason); m_refType = EveRefType.GetRefTypeIDToName(src.RefTypeID); m_taxReceiver = GetTaxReceiver(); }
/// <summary> /// Initializes a new instance of the <see cref="WalletJournal" /> class. /// </summary> /// <param name="src">The SRC.</param> /// <exception cref="System.ArgumentNullException">src</exception> internal WalletJournal(SerializableWalletJournalListItem src) { src.ThrowIfNull(nameof(src)); m_refTypeID = src.RefTypeID; m_taxReceiverID = src.TaxReceiverID; ID = src.ID; Date = src.Date; Amount = src.Amount; Balance = src.Balance; m_ownerID1 = src.OwnerID1; m_ownerName1 = EveIDToName.GetIDToName(m_ownerID1); m_ownerID2 = src.OwnerID2; m_ownerName2 = EveIDToName.GetIDToName(m_ownerID2); TaxAmount = src.TaxAmount; Reason = ParseReason(src.Reason ?? string.Empty); m_refType = EveRefType.GetRefTypeIDToName(src.RefTypeID); m_taxReceiver = GetTaxReceiver(); }