// Copy BidAdjustment from bulk bid internal override CityTargetBid SetCityBidAdditionalProperties(CityTargetBid apiBid, TBid bulkBid) { apiBid.BidAdjustment = bulkBid.BidAdjustment; return(apiBid); }
// Copy BidAdjustment from API bid internal override void SetBulkCityBidAdditionalProperties(TBid bulkBid, CityTargetBid apiBid) { bulkBid.BidAdjustment = apiBid.BidAdjustment; }
// Should only convert bids that are not excluded internal override bool ShouldConvertCityTargetBid(CityTargetBid bid) { return(!bid.IsExcluded); }
// Should convert LocationTargetBid if IsExcluded is false, should convert NegativeLocationTargetBid if IsExcluded is true internal abstract bool ShouldConvertCityTargetBid(CityTargetBid bid);
// Copies additional properties from API bid to bulk bid: BidAdjustment for LocationTarget, IsExcluded for NegativeLocationTarget internal abstract void SetBulkCityBidAdditionalProperties(TBid bulkBid, CityTargetBid apiBid);
// Copies additional properties from bulk bid to API bid: BidAdjustment for LocationTarget, IsExcluded for NegativeLocationTarget internal abstract CityTargetBid SetCityBidAdditionalProperties(CityTargetBid apiBid, TBid bulkBid);
/// <summary> /// Outputs the CityTargetBid. /// </summary> protected void OutputCityTargetBid(CityTargetBid targetBid) { if (targetBid != null) { OutputStatusMessage(string.Format("BidAdjustment: {0}", targetBid.BidAdjustment)); OutputStatusMessage(string.Format("City : {0}", targetBid.City)); var isExcluded = targetBid.IsExcluded ? "True" : "False"; OutputStatusMessage(string.Format("IsExcluded: {0}", isExcluded)); } }
// Set IsExcluded to true when converting to API bids internal override CityTargetBid SetCityBidAdditionalProperties(CityTargetBid apiBid, TBid bulkBid) { apiBid.IsExcluded = true; return(apiBid); }