コード例 #1
0
        // Copy BidAdjustment from bulk bid

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

            return(apiBid);
        }
コード例 #2
0
        // Copy BidAdjustment from API bid

        internal override void SetBulkCityBidAdditionalProperties(TBid bulkBid, CityTargetBid apiBid)
        {
            bulkBid.BidAdjustment = apiBid.BidAdjustment;
        }
コード例 #3
0
        // Should only convert bids that are not excluded

        internal override bool ShouldConvertCityTargetBid(CityTargetBid bid)
        {
            return(!bid.IsExcluded);
        }
コード例 #4
0
        // Should convert LocationTargetBid if IsExcluded is false, should convert NegativeLocationTargetBid if IsExcluded is true

        internal abstract bool ShouldConvertCityTargetBid(CityTargetBid bid);
コード例 #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);
コード例 #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);
コード例 #7
0
 /// <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));
     }
 }
コード例 #8
0
        // Set IsExcluded to true when converting to API bids

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

            return(apiBid);
        }