Ejemplo n.º 1
0
 public void SwitchStatus(string account, bool state)
 {
     ITripperStatusManager statusManager = new TripperStatusManager();
     var lpt = statusManager.SwitchStatus(account, state);
     if (lpt < DateTime.MaxValue)
     {
         IPackageDelivery delivery = GetService<IPackageDelivery>();
         delivery.PackageDeliveryToClient(account, lpt);
     }
 }
Ejemplo n.º 2
0
 public void RegisterTripper(string account, string ticket)
 {
     if (string.IsNullOrEmpty(account) || string.IsNullOrEmpty(ticket)) return;
     ITripperStatusManager manager = new TripperStatusManager();
     manager.RegisterTripper(account, ticket);
 }
Ejemplo n.º 3
0
 public void SwitchSetting(string account, int settingType)
 {
     ITripperStatusManager statusManager = new TripperStatusManager();
     statusManager.SwitchSetting(account, settingType);
 }
Ejemplo n.º 4
0
 public bool CanBePush(string account, int settingType)
 {
     ITripperStatusManager statusManager = new TripperStatusManager();
     return statusManager.CanBePush(account, settingType);
 }