internal override void ReadAdditionalData(IBulkStreamReader reader) { BulkKeywordBidSuggestion nextBidSuggestion; while (reader.TryRead(out nextBidSuggestion)) { if (BidSuggestions == null) { BidSuggestions = new BidSuggestionData(); } if (nextBidSuggestion is BulkKeywordBestPositionBid) { BidSuggestions.BestPosition = nextBidSuggestion; } else if (nextBidSuggestion is BulkKeywordMainLineBid) { BidSuggestions.MainLine = nextBidSuggestion; } else if (nextBidSuggestion is BulkKeywordFirstPageBid) { BidSuggestions.FirstPage = nextBidSuggestion; } } }
/// <summary> /// Outputs the PerformanceData /// </summary> private void OutputBulkBidSuggestions(BidSuggestionData bidSuggestions) { if (bidSuggestions != null) { OutputStatusMessage("BidSuggestions: "); OutputStatusMessage(string.Format("BestPosition: {0}", bidSuggestions.BestPosition)); OutputStatusMessage(string.Format("MainLine: {0}", bidSuggestions.MainLine)); OutputStatusMessage(string.Format("FirstPage: {0}", bidSuggestions.FirstPage)); } }