From 41f0e6037ac376ab975e7c78a7ae7fd5a0bd7d9e Mon Sep 17 00:00:00 2001 From: Gabriel Odero Date: Tue, 25 Jun 2024 23:22:55 +0300 Subject: [PATCH] Fix #96 Added additional properties returned from graph api --- .../Response/WhatsAppErrorResponse.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/WhatsappBusiness.CloudApi/Response/WhatsAppErrorResponse.cs b/WhatsappBusiness.CloudApi/Response/WhatsAppErrorResponse.cs index 5723ba1..64a57f1 100644 --- a/WhatsappBusiness.CloudApi/Response/WhatsAppErrorResponse.cs +++ b/WhatsappBusiness.CloudApi/Response/WhatsAppErrorResponse.cs @@ -19,8 +19,14 @@ public class Error [JsonProperty("code")] public long Code { get; set; } + [JsonProperty("error_user_title")] + public string? ErrorUserTitle { get; set; } + + [JsonProperty("error_user_msg")] + public string? ErrorUserMsg { get; set; } + [JsonProperty("error_data")] - public ErrorData ErrorData { get; set; } + public ErrorData? ErrorData { get; set; } [JsonProperty("error_subcode")] public long? ErrorSubcode { get; set; }