- IsTotpSecretExpired, IsTotpSecretInvalid und IsTotpSecretValid Erweiterungsmethoden für ReceiverReadDto hinzugefügt, um den Zustand des geheimen Schlüssels zu behandeln.
11 lines
371 B
C#
11 lines
371 B
C#
using EnvelopeGenerator.Domain.HttpResponse;
|
|
|
|
namespace EnvelopeGenerator.Application.Extensions
|
|
{
|
|
public static class MappingExtensions
|
|
{
|
|
public static bool Ok(this GtxMessagingResponse gtxMessagingResponse)
|
|
=> gtxMessagingResponse.TryGetValue("message-status", out var status)
|
|
&& status?.ToString()?.ToLower() == "ok";
|
|
}
|
|
} |