From 00cc59f7d5d1bf8dbcdf1f66376f540743fc862a Mon Sep 17 00:00:00 2001 From: Jonas Kamsker Date: Mon, 3 Feb 2020 14:24:30 +0100 Subject: [PATCH] Added 'ExtraData' to Pr0grammResponse Allowing the Dev to Inspect/Use extra data from the api which could come in future --- src/OpenPr0gramm/Response/Pr0grammResponse.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/OpenPr0gramm/Response/Pr0grammResponse.cs b/src/OpenPr0gramm/Response/Pr0grammResponse.cs index 2a79989..528fde2 100644 --- a/src/OpenPr0gramm/Response/Pr0grammResponse.cs +++ b/src/OpenPr0gramm/Response/Pr0grammResponse.cs @@ -1,6 +1,10 @@ -using Newtonsoft.Json; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; + using OpenPr0gramm.Json; + using System; +using System.Collections.Generic; namespace OpenPr0gramm { @@ -11,5 +15,8 @@ public class Pr0grammResponse public object Cache { get; private set; } public int RT { get; private set; } public int QC { get; private set; } + + [JsonExtensionData] + public IDictionary ExtraData { get; private set; } } }