From ac20e2e1d40ae2c1bc1ae3365392a165fc58e111 Mon Sep 17 00:00:00 2001 From: Matthias Langhard Date: Wed, 24 Mar 2021 09:10:50 +0100 Subject: [PATCH] chore: adds missing 'JsonProperty' annotations to models --- src/ClientContacts/Models/GetClientContactsResponse.cs | 2 ++ src/Clients/Models/GetClientsResponse.cs | 2 ++ src/Tasks/Models/GetTasksResponse.cs | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/ClientContacts/Models/GetClientContactsResponse.cs b/src/ClientContacts/Models/GetClientContactsResponse.cs index 273d710..5cccc00 100644 --- a/src/ClientContacts/Models/GetClientContactsResponse.cs +++ b/src/ClientContacts/Models/GetClientContactsResponse.cs @@ -1,9 +1,11 @@ using System.Collections.Generic; +using Newtonsoft.Json; namespace Novaloop.PaymoApi.ClientContacts.Models { public class GetClientContactsResponse { + [JsonProperty("clientcontacts")] public IEnumerable ClientContacts { get; set; } } } \ No newline at end of file diff --git a/src/Clients/Models/GetClientsResponse.cs b/src/Clients/Models/GetClientsResponse.cs index 439be1f..b5b4996 100644 --- a/src/Clients/Models/GetClientsResponse.cs +++ b/src/Clients/Models/GetClientsResponse.cs @@ -1,9 +1,11 @@ using System.Collections.Generic; +using Newtonsoft.Json; namespace Novaloop.PaymoApi.Clients.Models { public class GetClientsResponse { + [JsonProperty("clients")] public IEnumerable Clients { get; set; } } } \ No newline at end of file diff --git a/src/Tasks/Models/GetTasksResponse.cs b/src/Tasks/Models/GetTasksResponse.cs index f6c7364..935346a 100644 --- a/src/Tasks/Models/GetTasksResponse.cs +++ b/src/Tasks/Models/GetTasksResponse.cs @@ -1,9 +1,11 @@ using System.Collections.Generic; +using Newtonsoft.Json; namespace Novaloop.PaymoApi.Tasks.Models { public class GetTasksResponse { + [JsonProperty("tasks")] public IEnumerable Tasks { get; set; } } } \ No newline at end of file