Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(63)

Unified Diff: Hermes.Core/src/PostService/SmscPostman.cs

Issue 2736: Testowy SMS Base URL: svn://subversion/Qualent/Hermes/trunk
Patch Set: Created 17 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Hermes.Console/src/Program.cs ('k') | build.number » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Hermes.Core/src/PostService/SmscPostman.cs
===================================================================
--- Hermes.Core/src/PostService/SmscPostman.cs (revision 9106)
+++ Hermes.Core/src/PostService/SmscPostman.cs (revision 9120)
@@ -61,6 +61,18 @@
log.DebugFormat("Wiadomoœæ SMSC {0} przekazano do wys³ania. Oczekiwanie na status...",message.MessageID);
}
+ public void SendTestSms(string text, string phone) {
+ log.Debug("Rozpoczynam wysy³anie wiadomoœci testowej za pomoc¹ SMSC ...");
+ PhoneNumber phoneNumberToSendMessagesTo = new PhoneNumber("48" + phone);
+ Message message = new Message(phoneNumberToSendMessagesTo, text);
+ message.ReportRequest = true;
+ smsc.Send(message);
+ //messasgeIds.Add(message.MessageID, sentItemId);
+ //UpdateSmscId(sentItemId, message.MessageID, tx);
+
+ log.DebugFormat("Wiadomoœæ testow¹ SMSC {0} przekazano do wys³ania. Oczekiwanie na status...", message.MessageID);
+ }
+
private void Disconnect() {
smsc.Disconnect();
while (smscConnected) {
« no previous file with comments | « Hermes.Console/src/Program.cs ('k') | build.number » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b