From 949001791c70aa454829d449dffe29a51f8de20b Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Thu, 21 Nov 2024 17:22:21 +0100 Subject: [PATCH] refactor: Umbenennung von GTX in Gtx und GTXMessagingConfig in SmsParams --- .../Configurations/GTXMessagingConfig.cs | 7 ------- .../Configurations/GtxMessaging/SmsParams.cs | 7 +++++++ .../Services/GTXMessagingService.cs | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) delete mode 100644 EnvelopeGenerator.Application/Configurations/GTXMessagingConfig.cs create mode 100644 EnvelopeGenerator.Application/Configurations/GtxMessaging/SmsParams.cs diff --git a/EnvelopeGenerator.Application/Configurations/GTXMessagingConfig.cs b/EnvelopeGenerator.Application/Configurations/GTXMessagingConfig.cs deleted file mode 100644 index 45f9934b..00000000 --- a/EnvelopeGenerator.Application/Configurations/GTXMessagingConfig.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace EnvelopeGenerator.Application.Configurations -{ - public class GTXMessagingConfig - { - public required string AuthKey { get; init; } - } -} \ No newline at end of file diff --git a/EnvelopeGenerator.Application/Configurations/GtxMessaging/SmsParams.cs b/EnvelopeGenerator.Application/Configurations/GtxMessaging/SmsParams.cs new file mode 100644 index 00000000..04500ea7 --- /dev/null +++ b/EnvelopeGenerator.Application/Configurations/GtxMessaging/SmsParams.cs @@ -0,0 +1,7 @@ +namespace EnvelopeGenerator.Application.Configurations.GtxMessaging +{ + public class SmsParams + { + public required string AuthKey { get; init; } + } +} \ No newline at end of file diff --git a/EnvelopeGenerator.Application/Services/GTXMessagingService.cs b/EnvelopeGenerator.Application/Services/GTXMessagingService.cs index ee2b1db5..acfa76d6 100644 --- a/EnvelopeGenerator.Application/Services/GTXMessagingService.cs +++ b/EnvelopeGenerator.Application/Services/GTXMessagingService.cs @@ -1,15 +1,15 @@ -using EnvelopeGenerator.Application.Configurations; +using EnvelopeGenerator.Application.Configurations.GtxMessaging; using Microsoft.Extensions.Options; namespace EnvelopeGenerator.Application.Services { - public class GTXMessagingService + public class GtxMessagingService { - private readonly string _authKey; + private readonly SmsParams _smsParams; - public GTXMessagingService(IOptions options) + public GtxMessagingService(IOptions smsParamsOptions) { - _authKey = options.Value.AuthKey; + _smsParams = smsParamsOptions.Value; } } } \ No newline at end of file