From d321dc00799123695642d9d94649110a6f9635de Mon Sep 17 00:00:00 2001 From: Andrey Ioch Date: Fri, 14 Jun 2024 11:29:40 +0300 Subject: [PATCH] added delivery error --- src/SMS/Curiosity.SMS.Smsc/CHANGELOG.md | 6 ++++++ src/SMS/Curiosity.SMS.Smsc/Curiosity.SMS.Smsc.csproj | 2 +- src/SMS/Curiosity.SMS.Smsc/SmscSender.cs | 3 +++ src/SMS/Curiosity.SMS/CHANGELOG.md | 6 ++++++ src/SMS/Curiosity.SMS/Curiosity.SMS.csproj | 2 +- src/SMS/Curiosity.SMS/SmsError.cs | 5 +++++ 6 files changed, 22 insertions(+), 2 deletions(-) diff --git a/src/SMS/Curiosity.SMS.Smsc/CHANGELOG.md b/src/SMS/Curiosity.SMS.Smsc/CHANGELOG.md index 2462f31..1bb64f1 100644 --- a/src/SMS/Curiosity.SMS.Smsc/CHANGELOG.md +++ b/src/SMS/Curiosity.SMS.Smsc/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [1.3.2] + +### Changed + +- Added delivery error + ## [1.3.1] ### Changed diff --git a/src/SMS/Curiosity.SMS.Smsc/Curiosity.SMS.Smsc.csproj b/src/SMS/Curiosity.SMS.Smsc/Curiosity.SMS.Smsc.csproj index ebc5047..7c90716 100644 --- a/src/SMS/Curiosity.SMS.Smsc/Curiosity.SMS.Smsc.csproj +++ b/src/SMS/Curiosity.SMS.Smsc/Curiosity.SMS.Smsc.csproj @@ -12,7 +12,7 @@ 1.0.0 1.0.0 - 1.3.1 + 1.3.2 Max Markelow (@markeli) SIIS Ltd diff --git a/src/SMS/Curiosity.SMS.Smsc/SmscSender.cs b/src/SMS/Curiosity.SMS.Smsc/SmscSender.cs index 91658d4..d3d192b 100644 --- a/src/SMS/Curiosity.SMS.Smsc/SmscSender.cs +++ b/src/SMS/Curiosity.SMS.Smsc/SmscSender.cs @@ -102,6 +102,9 @@ private async Task> SendSmsAsync( case 4: // IP-адрес временно заблокирован из-за частых ошибок в запросах. case 9: // Более 15 параллельных запросов под одним логином с разных подключений. return Response.Failed(new Error((int) SmsError.RateLimit, errorMessage), new SmsSentResult(null, null, resultJson)); + + case 8: // can't to deliver + return Response.Failed(new Error((int)SmsError.DeliveryError, errorMessage), new SmsSentResult(null, null, resultJson)); default: return Response.Failed(new Error((int) SmsError.Unknown, errorMessage), new SmsSentResult(null, null, resultJson)); diff --git a/src/SMS/Curiosity.SMS/CHANGELOG.md b/src/SMS/Curiosity.SMS/CHANGELOG.md index 1b8f944..2e1932b 100644 --- a/src/SMS/Curiosity.SMS/CHANGELOG.md +++ b/src/SMS/Curiosity.SMS/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [1.4.1] + +### Changed + +- Added delivery error + ## [1.4.0] - 2023-01-29 ### Changed diff --git a/src/SMS/Curiosity.SMS/Curiosity.SMS.csproj b/src/SMS/Curiosity.SMS/Curiosity.SMS.csproj index f4066ab..f64de0c 100644 --- a/src/SMS/Curiosity.SMS/Curiosity.SMS.csproj +++ b/src/SMS/Curiosity.SMS/Curiosity.SMS.csproj @@ -12,7 +12,7 @@ 1.0.0 1.0.0 - 1.4.0 + 1.4.1 Max Markelow (@markeli) SIIS Ltd diff --git a/src/SMS/Curiosity.SMS/SmsError.cs b/src/SMS/Curiosity.SMS/SmsError.cs index f8b1275..fa19cd9 100644 --- a/src/SMS/Curiosity.SMS/SmsError.cs +++ b/src/SMS/Curiosity.SMS/SmsError.cs @@ -34,5 +34,10 @@ public enum SmsError /// Account has no money. /// NoMoney = 5, + + /// + /// Can't to deliver + /// + DeliveryError = 6, } }