14 lines
488 B
C#
14 lines
488 B
C#
using EnvelopeGenerator.Application.DTOs.Messaging;
|
|
|
|
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";
|
|
|
|
public static string ToBase64String(this byte[] bytes)
|
|
=> Convert.ToBase64String(bytes);
|
|
}
|
|
} |