示例#1
0
 public PayServiceManager(AtsManager manager, AtsServer server)
 {
     Manager                  = manager;
     Server                   = server;
     server.CallFinished     += ServerOnCallFinished;
     UsersCallsInfoDictionary = new Dictionary <UserAccount, List <CallInfo> >();
     _withdrawedPorts         = new List <Port>();
 }
 public UserAccount(string name, IRate currentRate, AtsManager manager, PayServiceManager serviceManager)
 {
     Name             = name;
     CurrentRate      = currentRate;
     Terminals        = new List <Terminal>();
     RegistrationTime = DateTime.Now;
     ChangeRateTime   = RegistrationTime;
     FreeMinutes      = currentRate.FreeMinutes;
     ServiceManager   = serviceManager;
     Manager          = manager;
     Balance          = 1;
 }