public long this[EPIMeterValueTypes valueType] { get { if (valueType == EPIMeterValueTypes.Current) { return(this.ValueCurrent); } else if (valueType == EPIMeterValueTypes.Diff) { return(this.ValueDiff); } else { return(this.ValueStart); } } set { if (valueType == EPIMeterValueTypes.Current) { this.ValueCurrent = value; } else if (valueType == EPIMeterValueTypes.Diff) { this.ValueDiff = value; } else { this.ValueStart = value; } } }
public long this[EPIMeterValueTypes valueType, EPIMeterTypes meterType] { get { return(this[meterType][valueType]); } set { this[meterType][valueType] = value; } }
public bool GetLatestMeters(int installationNo, EPIMeterValueTypes valueType) { // get the floor financial var dbFloorFinancial = ExCommsDataContext.Current.GetFloorFinancials(installationNo).FirstOrDefault(); if (dbFloorFinancial == null) { return(false); } this.CopyMeterValuesFromDB(dbFloorFinancial, valueType); return(true); }
internal void ForceMeterReadAndGetLatest(MonitorExecutionContext context, MonitorEntity_MsgTgt target, Action <int, int, int, int> action) { int installationNo = context.G2HMessage.InstallationNo; EPIMeterValueTypes valueType = EPIMeterValueTypes.Start; using (EPIMeterValueDictionary meterValues = this.ForceMeterReadAndGetLatest(context, target)) { action(installationNo, (int)meterValues[EPIMeterTypes.Handpay][valueType], (int)meterValues[EPIMeterTypes.Jackpot][valueType], (int)meterValues[EPIMeterTypes.VouchersOut][valueType]); } }
public void CopyMeterValuesFromDB(DataRow floorFinancial, EPIMeterValueTypes valueType) { this[valueType, EPIMeterTypes.GamesPlayed] = floorFinancial.Field <long>("GamesPlayed"); this[valueType, EPIMeterTypes.GamesWon] = floorFinancial.Field <long>("GamesWon"); this[valueType, EPIMeterTypes.GamesLost] = floorFinancial.Field <long>("GamesLost"); this[valueType, EPIMeterTypes.CoinsIn] = floorFinancial.Field <long>("CoinsIn"); this[valueType, EPIMeterTypes.CoinsOut] = floorFinancial.Field <long>("CoinsOut"); this[valueType, EPIMeterTypes.Jackpot] = floorFinancial.Field <long>("Jackpot"); this[valueType, EPIMeterTypes.BillsIn] = floorFinancial.Field <long>("BillsIn"); this[valueType, EPIMeterTypes.VouchersIn] = floorFinancial.Field <long>("VouchersIn"); this[valueType, EPIMeterTypes.NonCashableEFTIn] = floorFinancial.Field <long>("NonCashableEFTIn"); this[valueType, EPIMeterTypes.NonCashableEFTOut] = floorFinancial.Field <long>("NonCashableEFTOut"); this[valueType, EPIMeterTypes.CashableEFTIn] = floorFinancial.Field <long>("CashableEFTIn"); this[valueType, EPIMeterTypes.CashableEFTOut] = floorFinancial.Field <long>("CashableEFTOut"); }
public void CopyMeterValuesFromDB(FloorFinancialsResult floorFinancial, EPIMeterValueTypes valueType) { this[valueType, EPIMeterTypes.GamesPlayed] = (long)floorFinancial.Games_Bet.SafeValue(); this[valueType, EPIMeterTypes.GamesWon] = (long)floorFinancial.Games_Won.SafeValue(); this[valueType, EPIMeterTypes.GamesLost] = (long)floorFinancial.Games_Lost.SafeValue(); this[valueType, EPIMeterTypes.CoinsIn] = (long)floorFinancial.Coins_In.SafeValue(); this[valueType, EPIMeterTypes.CoinsOut] = (long)floorFinancial.Coins_Out.SafeValue(); this[valueType, EPIMeterTypes.Handpay] = (long)floorFinancial.Handpay.SafeValue(); this[valueType, EPIMeterTypes.Jackpot] = (long)floorFinancial.Jackpot.SafeValue(); this[valueType, EPIMeterTypes.BillsIn] = (long)floorFinancial.BillsIn.SafeValue(); this[valueType, EPIMeterTypes.VouchersIn] = (long)floorFinancial.VouchersIn.SafeValue(); this[valueType, EPIMeterTypes.VouchersOut] = (long)floorFinancial.TicketOut.SafeValue(); this[valueType, EPIMeterTypes.NonCashableEFTIn] = (long)floorFinancial.NoncashableEFTIN.SafeValue(); this[valueType, EPIMeterTypes.NonCashableEFTOut] = (long)floorFinancial.NonCashableEFTOut.SafeValue(); this[valueType, EPIMeterTypes.CashableEFTIn] = (long)floorFinancial.CashableEFTIn.SafeValue(); this[valueType, EPIMeterTypes.CashableEFTIn] = (long)floorFinancial.CashableEFTOut.SafeValue(); }
public void CopyMeterValuesFromDB(DataRow floorFinancial, EPIMeterValueTypes valueType) { _epiMeterValues.CopyMeterValuesFromDB(floorFinancial, valueType); }
public void CopyMeterValuesFromDB(FloorFinancialsResult floorFinancial, EPIMeterValueTypes valueType) { _epiMeterValues.CopyMeterValuesFromDB(floorFinancial, valueType); }
public bool GetLatestMeters(int installationNo, EPIMeterValueTypes valueType) { return(_epiMeterValues.GetLatestMeters(installationNo, valueType)); }
public long this[EPIMeterValueTypes valueType, EPIMeterTypes meterType] { get { return(_epiMeterValues[valueType, meterType]); } set { _epiMeterValues[valueType, meterType] = value; } }