예제 #1
0
 public bool MatchesConditions(Bid bid, BidState state)
 {
     if (bid.Contract.Suit == Suit.Club && bid.Contract.Level == Level.One)
     {
         return(true);
     }
     return(false);
 }
예제 #2
0
        public BidState Resolve(Bid source, TDestination destination, BidState destMember, ResolutionContext context)
        {
            var bestBid = _itemService.GetBestBidAsync(source.Item.Id).Result;

            if (source.BidAmount == bestBid.BestBidPrice)
            {
                return(BidState.Najlepsza);
            }
            return(BidState.Przebita);
        }
예제 #3
0
 public RevealedInfo InformationRevealed(Bid bid, BidState state)
 {
     throw new System.NotImplementedException();
 }
예제 #4
0
 public BidState MakeBid(Bid bid, BidState bidState)
 {
     return(bidState);
 }
예제 #5
0
 public string QueryBid(Bid bid, BidState bidState)
 {
     // check against all known rules.
     // if does not match, use Natural rule
     return("");
 }