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); }
public override void OnPressureStatusChanging(ApparatusStatusContext context, PressureStatusBase oldStatus, PressureStatusBase newStatus) { if (newStatus is NoPressure) { // 1、从有人到无人,切换到广告状态 context.DisplayStatus = new DisplayAdvertisement(); } }
public override void OnPressureStatusChanging(ApparatusStatusContext context, PressureStatusBase oldStatus, PressureStatusBase newStatus) { if (newStatus is UnderPressure) { // 2、无人到有人,切换到扫码状态 context.DisplayStatus = new DisplayQRCode(); } }
public virtual void OnPressureStatusChanging(ApparatusStatusContext context, PressureStatusBase oldStatus, PressureStatusBase newStatus) { }
public override void OnPressureStatusChanging(ApparatusStatusContext context, PressureStatusBase oldStatus, PressureStatusBase newStatus) { if (newStatus is NoPressure) { // 9、有人到无人,无人弹窗 ((DisplayTest)context.DisplayStatus).PropupStatus = new PropupNoPeople(); } }
public override void OnPressureStatusChanging(ApparatusStatusContext context, PressureStatusBase oldStatus, PressureStatusBase newStatus) { if (newStatus is UnderPressure) { // 5、无人到有人,关闭弹窗 ((DisplayTest)context.DisplayStatus).PropupStatus = null; } }