Пример #1
0
 /// <summary>
 /// Converts the data to CSV
 /// </summary>
 /// <returns>String of CSV</returns>
 /// <remarks>Parsable by the constructor should you need to recreate the object from CSV</remarks>
 public override string ToLine()
 {
     return(string.Join("\t",
                        TransactionID,
                        BuybackType,
                        LastUpdate.ToString("yyyyMMdd"),
                        LastIDsUpdate?.ToString("yyyyMMdd"),
                        ISIN,
                        USDMarketCap,
                        CompanyID,
                        ICBIndustry,
                        ICBSuperSector,
                        ICBSector,
                        ICBSubSector,
                        ICBCode,
                        CompanyName,
                        PreviousResultsAnnouncementDate?.ToString("yyyyMMdd"),
                        NextResultsAnnouncementsDate?.ToString("yyyyMMdd"),
                        NextCloseBegin?.ToString("yyyyMMdd"),
                        LastCloseEnded?.ToString("yyyyMMdd"),
                        SecurityDescription,
                        TickerCountry,
                        TickerSymbol,
                        AnnouncementDate?.ToString("yyyyMMdd"),
                        TimeReleased?.ToString("yyyyMMdd HH:mm:ss"),
                        TimeProcessed?.ToString("yyyyMMdd HH:mm:ss"),
                        TimeReleasedUtc?.ToString("yyyyMMdd HH:mm:ss"),
                        TimeProcessedUtc?.ToString("yyyyMMdd HH:mm:ss"),
                        AnnouncedIn,
                        BuybackDate?.ToString("yyyyMMdd"),
                        BuybackVia,
                        BuybackBy,
                        HoldingType,
                        Currency,
                        Price,
                        TransactionAmount,
                        GBPValue,
                        EURValue,
                        USDValue,
                        NoteText,
                        BuybackPercentage,
                        VolumePercentage,
                        ConversionRate,
                        AmountAdjustedFactor,
                        PriceAdjustedFactor,
                        TreasuryHolding));
 }
Пример #2
0
 /// <summary>
 /// Converts the data to CSV
 /// </summary>
 /// <returns>String of CSV</returns>
 /// <remarks>Parsable by the constructor should you need to recreate the object from CSV</remarks>
 public override string ToLine()
 {
     return(string.Join("\t",
                        TransactionID,
                        BuybackType,
                        LastUpdate.ToString("yyyyMMdd"),
                        LastIDsUpdate?.ToString("yyyyMMdd"),
                        ISIN,
                        USDMarketCap,
                        CompanyID,
                        ICBIndustry,
                        ICBSuperSector,
                        ICBSector,
                        ICBSubSector,
                        ICBCode,
                        CompanyName,
                        PreviousResultsAnnouncementDate?.ToString("yyyyMMdd"),
                        NextResultsAnnouncementsDate?.ToString("yyyyMMdd"),
                        NextCloseBegin?.ToString("yyyyMMdd"),
                        LastCloseEnded?.ToString("yyyyMMdd"),
                        SecurityDescription,
                        TickerCountry,
                        TickerSymbol,
                        AnnouncementDate?.ToString("yyyyMMdd"),
                        TimeReleased?.ToString("yyyyMMdd HH:mm:ss"),
                        TimeProcessed?.ToString("yyyyMMdd HH:mm:ss"),
                        TimeReleasedUtc?.ToString("yyyyMMdd HH:mm:ss"),
                        TimeProcessedUtc?.ToString("yyyyMMdd HH:mm:ss"),
                        AnnouncedIn,
                        IntentionVia,
                        IntentionBy,
                        BuybackIntentionHoldingType,
                        IntentionAmount,
                        ValueCurrency,
                        IntentionValue,
                        IntentionPercentage,
                        IntentionAuthorisationStartDate?.ToString("yyyyMMdd"),
                        IntentionAuthorisationEndDate?.ToString("yyyyMMdd"),
                        PriceCurrency,
                        MinimumPrice,
                        MaximumPrice,
                        BuybackIntentionNoteText));
 }