public AccountingHelper(ScriptedGameContext context, IAccountingFacade accountingFacade, ILiveReportTracker reportTracker, bool trackFunData) { this.context = context; this.trackFunData = trackFunData; this.reportTracker = reportTracker; this.accountingFacade = accountingFacade; reportTracker.Clear(context.Game.IdLong, 0); }
public void RegisterNewRound(string sessionId, string description) { CancelCurrentBets(sessionId, description); var userInfo = context.getUserInfo(sessionId); if (userInfo != null) { if (!userInfo.isPlayingForFun) { reportTracker.Clear(context.Game.IdLong, userInfo.UserId); } } else { reportTracker.Clear(context.Game.IdLong, 0); } }
internal void UnregisterSession(SessionWrapper session) { mediaHelper?.UnregisterSession(session.SessionId); var userInfo = session.GetUserInfo(this); if (userInfo != null) { reportTracker.Clear(game.IdLong, userInfo.UserId); } }