internal override bool ShouldConvertStateTargetBid(StateTargetBid bid) { return(!bid.IsExcluded); }
internal override StateTargetBid SetStateBidAdditionalProperties(StateTargetBid apiBid, TBid bulkBid) { apiBid.BidAdjustment = bulkBid.BidAdjustment; return(apiBid); }
internal override void SetBulkStateBidAdditionalProperties(TBid bulkBid, StateTargetBid apiBid) { bulkBid.BidAdjustment = apiBid.BidAdjustment; }
internal abstract bool ShouldConvertStateTargetBid(StateTargetBid bid);
internal abstract void SetBulkStateBidAdditionalProperties(TBid bulkBid, StateTargetBid apiBid);
internal abstract StateTargetBid SetStateBidAdditionalProperties(StateTargetBid apiBid, TBid bulkBid);
/// <summary> /// Outputs the StateTargetBid. /// </summary> protected void OutputStateTargetBid(StateTargetBid targetBid) { if (targetBid != null) { OutputStatusMessage(string.Format("BidAdjustment: {0}", targetBid.BidAdjustment)); OutputStatusMessage(string.Format("State : {0}", targetBid.State)); var isExcluded = targetBid.IsExcluded ? "True" : "False"; OutputStatusMessage(string.Format("IsExcluded: {0}", isExcluded)); } }
internal override StateTargetBid SetStateBidAdditionalProperties(StateTargetBid apiBid, TBid bulkBid) { apiBid.IsExcluded = true; return(apiBid); }