refactor: Umbenennung von GTX in Gtx und GTXMessagingConfig in SmsParams
This commit is contained in:
parent
30f93f2439
commit
949001791c
@ -1,7 +0,0 @@
|
|||||||
namespace EnvelopeGenerator.Application.Configurations
|
|
||||||
{
|
|
||||||
public class GTXMessagingConfig
|
|
||||||
{
|
|
||||||
public required string AuthKey { get; init; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
namespace EnvelopeGenerator.Application.Configurations.GtxMessaging
|
||||||
|
{
|
||||||
|
public class SmsParams
|
||||||
|
{
|
||||||
|
public required string AuthKey { get; init; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,15 +1,15 @@
|
|||||||
using EnvelopeGenerator.Application.Configurations;
|
using EnvelopeGenerator.Application.Configurations.GtxMessaging;
|
||||||
using Microsoft.Extensions.Options;
|
using Microsoft.Extensions.Options;
|
||||||
|
|
||||||
namespace EnvelopeGenerator.Application.Services
|
namespace EnvelopeGenerator.Application.Services
|
||||||
{
|
{
|
||||||
public class GTXMessagingService
|
public class GtxMessagingService
|
||||||
{
|
{
|
||||||
private readonly string _authKey;
|
private readonly SmsParams _smsParams;
|
||||||
|
|
||||||
public GTXMessagingService(IOptions<GTXMessagingConfig> options)
|
public GtxMessagingService(IOptions<SmsParams> smsParamsOptions)
|
||||||
{
|
{
|
||||||
_authKey = options.Value.AuthKey;
|
_smsParams = smsParamsOptions.Value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user