aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/Web
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2024-11-14 14:30:42 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2024-11-14 14:30:42 +0200
commit7d9ab3b87aed944167d77244b00fbdd4224725e2 (patch)
tree9a2a56059a0332182a7ecf4aa4237eae132f97f7 /Software/Visual_Studio/PPC/Tango.PPC.Common/Web
parentc19568d8dc2677fe8dd57d55a737535c718f52f5 (diff)
downloadTango-7d9ab3b87aed944167d77244b00fbdd4224725e2.tar.gz
Tango-7d9ab3b87aed944167d77244b00fbdd4224725e2.zip
Added support for SMS notifications on TS & X4.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/Web')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Web/PPCWebClientBase.cs9
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Web/SendSMSRequest.cs22
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Web/SendSMSResponse.cs14
3 files changed, 45 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/PPCWebClientBase.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/PPCWebClientBase.cs
index 35150a9d6..0363285f8 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/PPCWebClientBase.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/PPCWebClientBase.cs
@@ -122,6 +122,15 @@ namespace Tango.PPC.Common.Web
}
/// <summary>
+ /// Executes the SendSMS action and returns Tango.PPC.Common.Web.SendSMSResponse.
+ /// </summary>
+ /// <returns></returns>
+ public Task<Tango.PPC.Common.Web.SendSMSResponse> SendSMS(Tango.PPC.Common.Web.SendSMSRequest request)
+ {
+ return Post<Tango.PPC.Common.Web.SendSMSRequest, Tango.PPC.Common.Web.SendSMSResponse>("SendSMS", request);
+ }
+
+ /// <summary>
/// Executes the GetLatestVersion action and returns Tango.PPC.Common.Web.LatestVersionResponse.
/// </summary>
/// <returns></returns>
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/SendSMSRequest.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/SendSMSRequest.cs
new file mode 100644
index 000000000..ff07e9540
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/SendSMSRequest.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Tango.BL.Entities;
+using Tango.Transport.Web;
+
+namespace Tango.PPC.Common.Web
+{
+ public class SendSMSRequest : WebRequestMessage
+ {
+ public List<String> PhoneNumbers { get; set; }
+
+ public String Message { get; set; }
+
+ public SendSMSRequest()
+ {
+ PhoneNumbers = new List<string>();
+ }
+ }
+}
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/SendSMSResponse.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/SendSMSResponse.cs
new file mode 100644
index 000000000..28c983911
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/SendSMSResponse.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Tango.Transport.Web;
+
+namespace Tango.PPC.Common.Web
+{
+ public class SendSMSResponse : WebResponseMessage
+ {
+
+ }
+}