// 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);
        }
Esempio n. 4
0
        // Should convert LocationTargetBid if IsExcluded is false, should convert NegativeLocationTargetBid if IsExcluded is true

        internal abstract bool ShouldConvertCityTargetBid(CityTargetBid bid);
Esempio n. 5
0
        // Copies additional properties from API bid to bulk bid: BidAdjustment for LocationTarget, IsExcluded for NegativeLocationTarget

        internal abstract void SetBulkCityBidAdditionalProperties(TBid bulkBid, CityTargetBid apiBid);
Esempio n. 6
0
        // 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));
     }
 }
Esempio n. 8
0
        // Set IsExcluded to true when converting to API bids

        internal override CityTargetBid SetCityBidAdditionalProperties(CityTargetBid apiBid, TBid bulkBid)
        {
            apiBid.IsExcluded = true;

            return(apiBid);
        }