diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2025-01-27 10:17:36 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2025-01-27 10:17:36 +0200 |
| commit | a712332e02b8346de626e267b3cba3f819fd3743 (patch) | |
| tree | 4d613806740b6fce84054b51fc8690bebea972ec /Software/Visual_Studio/Tango.BL/Entities | |
| parent | e204e6ac5d04114778b5b836a3e3707e819ad349 (diff) | |
| download | Tango-a712332e02b8346de626e267b3cba3f819fd3743.tar.gz Tango-a712332e02b8346de626e267b3cba3f819fd3743.zip | |
Allow SMS notifications.
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/Entities')
| -rw-r--r-- | Software/Visual_Studio/Tango.BL/Entities/MachineBase.cs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.BL/Entities/MachineBase.cs b/Software/Visual_Studio/Tango.BL/Entities/MachineBase.cs index dcd84d9eb..e7db884b0 100644 --- a/Software/Visual_Studio/Tango.BL/Entities/MachineBase.cs +++ b/Software/Visual_Studio/Tango.BL/Entities/MachineBase.cs @@ -83,6 +83,8 @@ namespace Tango.BL.Entities public event EventHandler<Int32> MachineTypeChanged; + public event EventHandler<Boolean> AllowSmsNotificationsChanged; + public event EventHandler<SynchronizedObservableCollection<Cat>> CatsChanged; public event EventHandler<SynchronizedObservableCollection<ColorProcessParameter>> ColorProcessParametersChanged; @@ -1066,6 +1068,33 @@ namespace Tango.BL.Entities } } + protected Boolean _allowsmsnotifications; + + /// <summary> + /// Gets or sets the machinebase allow sms notifications. + /// </summary> + + [Column("ALLOW_SMS_NOTIFICATIONS")] + + public Boolean AllowSmsNotifications + { + get + { + return _allowsmsnotifications; + } + + set + { + if (_allowsmsnotifications != value) + { + _allowsmsnotifications = value; + + OnAllowSmsNotificationsChanged(value); + + } + } + } + protected SynchronizedObservableCollection<Cat> _cats; /// <summary> @@ -1640,6 +1669,15 @@ namespace Tango.BL.Entities } /// <summary> + /// Called when the AllowSmsNotifications has changed. + /// </summary> + protected virtual void OnAllowSmsNotificationsChanged(Boolean allowsmsnotifications) + { + AllowSmsNotificationsChanged?.Invoke(this, allowsmsnotifications); + RaisePropertyChanged(nameof(AllowSmsNotifications)); + } + + /// <summary> /// Called when the Cats has changed. /// </summary> protected virtual void OnCatsChanged(SynchronizedObservableCollection<Cat> cats) |
