Exemple #1
0
 private void recievedMessageToMatch(RecievedMessage rm)
 {
     MatchStartedResult msr = (MatchStartedResult)rm.Result;
     Match matchToAdd = new Match(msr.MatchID, msr.TeamA, msr.OddsA, msr.TeamB, msr.OddsB, msr.OddsDraw, msr.Limit, this);
     if (!_listOfMatches.Contains(matchToAdd))
     {
         lock (lockObj)
         {
             this._listOfMatches.Add(matchToAdd);
         }
     }
 }
Exemple #2
0
 /// <summary>
 /// Get any bets placed for an open match, allows the gambler to try and bet more wisely
 /// </summary>
 /// <param name="m">The match of which you want the current bets set</param>
 /// <returns>A list of bets that have been placed agains the match (It can be empty)</returns>
 public List<Bet> getBetsPlacedForMatch(Match m)
 {
     return Connection.getOtherBetsPlaced(m);
 }