feat(EnvelopeReceiverBase): HasPhoneNumber-Eigenschaft sowohl zur Entität als auch zum DTO hinzugefügt
This commit is contained in:
11
EnvelopeGenerator.Application/MappingExtensions.cs
Normal file
11
EnvelopeGenerator.Application/MappingExtensions.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using EnvelopeGenerator.Domain.HttpResponse;
|
||||
|
||||
namespace EnvelopeGenerator.Application
|
||||
{
|
||||
public static class MappingExtensions
|
||||
{
|
||||
public static bool Ok(this GtxMessagingResponse gtxMessagingResponse)
|
||||
=> gtxMessagingResponse.TryGetValue("message-status", out var status)
|
||||
&& status?.ToString()?.ToLower() == "ok";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user