aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.BL
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2025-01-27 10:17:36 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2025-01-27 10:17:36 +0200
commita712332e02b8346de626e267b3cba3f819fd3743 (patch)
tree4d613806740b6fce84054b51fc8690bebea972ec /Software/Visual_Studio/Tango.BL
parente204e6ac5d04114778b5b836a3e3707e819ad349 (diff)
downloadTango-a712332e02b8346de626e267b3cba3f819fd3743.tar.gz
Tango-a712332e02b8346de626e267b3cba3f819fd3743.zip
Allow SMS notifications.
Diffstat (limited to 'Software/Visual_Studio/Tango.BL')
-rw-r--r--Software/Visual_Studio/Tango.BL/DTO/MachineDTOBase.cs8
-rw-r--r--Software/Visual_Studio/Tango.BL/Entities/MachineBase.cs38
2 files changed, 46 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.BL/DTO/MachineDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/MachineDTOBase.cs
index 48974eb96..c09e8156e 100644
--- a/Software/Visual_Studio/Tango.BL/DTO/MachineDTOBase.cs
+++ b/Software/Visual_Studio/Tango.BL/DTO/MachineDTOBase.cs
@@ -309,5 +309,13 @@ namespace Tango.BL.DTO
get; set;
}
+ /// <summary>
+ /// allow sms notifications
+ /// </summary>
+ public Boolean AllowSmsNotifications
+ {
+ get; set;
+ }
+
}
}
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)