Exemplo n.º 1
0
        public override string RaiseMaxBet()
        {
            Auction auction = clientObject.Auction;

            if (parametr.Equals("X2"))
            {
                auction.ActualTradeMaxBet *= 2;
            }
            else
            {
                auction.ActualTradeMaxBet += AuctionServer.DeserializeFromString <float>(parametr);
            }
            auction.ActualTrade.MaxBetAccountId = clientObject.Account.AccountId;
            auction.TimeWithoutBets             = 0;
            clientObject.Server.BroadcastMessage(CreateResponse(methods.SetTimer(), auction.TimeWithoutBets), clientObject.Id);
            clientObject.Server.BroadcastMessage(CreateResponse(methods.UpdateTrade(), auction.ActualTrade), clientObject.Id);
            SendSingleMessage(methods.SendDefaultResponse(), true);
            return(null);
        }
Exemplo n.º 2
0
 private T GetParametr <T>()
 {
     return(AuctionServer.DeserializeFromString <T>(parametr));
 }