예제 #1
0
 public override void OnPressureStatusChanging(ApparatusStatusContext context, PressureStatusBase oldStatus, PressureStatusBase newStatus)
 {
     if (PropupStatus == null && newStatus is NoPressure)
     {
         // 4、有人到无人,进入无人弹窗状态
         PropupStatus = new PropupNoPeople();
     }
     PropupStatus?.OnPressureStatusChanging(context, oldStatus, newStatus);
 }
예제 #2
0
 public override void OnPressureStatusChanging(ApparatusStatusContext context, PressureStatusBase oldStatus, PressureStatusBase newStatus)
 {
     if (newStatus is NoPressure)
     {
         // 1、从有人到无人,切换到广告状态
         context.DisplayStatus = new DisplayAdvertisement();
     }
 }
예제 #3
0
 public override void OnPressureStatusChanging(ApparatusStatusContext context, PressureStatusBase oldStatus, PressureStatusBase newStatus)
 {
     if (newStatus is UnderPressure)
     {
         // 2、无人到有人,切换到扫码状态
         context.DisplayStatus = new DisplayQRCode();
     }
 }
예제 #4
0
 public virtual void OnPressureStatusChanging(ApparatusStatusContext context, PressureStatusBase oldStatus, PressureStatusBase newStatus)
 {
 }
예제 #5
0
 public override void OnPressureStatusChanging(ApparatusStatusContext context, PressureStatusBase oldStatus, PressureStatusBase newStatus)
 {
     if (newStatus is NoPressure)
     {
         // 9、有人到无人,无人弹窗
         ((DisplayTest)context.DisplayStatus).PropupStatus = new PropupNoPeople();
     }
 }
예제 #6
0
 public override void OnPressureStatusChanging(ApparatusStatusContext context, PressureStatusBase oldStatus, PressureStatusBase newStatus)
 {
     if (newStatus is UnderPressure)
     {
         // 5、无人到有人,关闭弹窗
         ((DisplayTest)context.DisplayStatus).PropupStatus = null;
     }
 }