From a8a59a0da7321b4f986cf2cf7a3b51637fa15736 Mon Sep 17 00:00:00 2001 From: Nikki Locke Date: Thu, 5 Sep 2019 12:22:30 +0100 Subject: [PATCH] v1.0.4 Fix bug in list retrieval --- NextcloudApi/ApiEntry.cs | 2 +- NextcloudApi/NextcloudApi.csproj | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/NextcloudApi/ApiEntry.cs b/NextcloudApi/ApiEntry.cs index a4a4d74..3a822f1 100644 --- a/NextcloudApi/ApiEntry.cs +++ b/NextcloudApi/ApiEntry.cs @@ -299,7 +299,7 @@ public virtual ApiList Convert(JObject j) { public class ApiCollection : ApiList { public override ApiList Convert(JObject j) { - JObject col = (JObject)j.SelectToken(Path); + JToken col = j.SelectToken(Path); return new ApiCollection() { MetaData = j["MetaData"].ConvertToObject(), Request = Request, diff --git a/NextcloudApi/NextcloudApi.csproj b/NextcloudApi/NextcloudApi.csproj index 8374973..8e488d7 100644 --- a/NextcloudApi/NextcloudApi.csproj +++ b/NextcloudApi/NextcloudApi.csproj @@ -12,8 +12,8 @@ https://github.com/nikkilocke/NextcloudAp Github Nextcloud C# API - Separate error and log streams - 1.0.3 + Fix bug in list retrieval + 1.0.4