Skip to content

Commit

Permalink
reverted ResponseBuilder changes to eariler version except EventDeser…
Browse files Browse the repository at this point in the history
…ializer dependency
  • Loading branch information
Mohit Tejani authored and Mohit Tejani committed Jan 15, 2025
1 parent 2864ab5 commit 18ff3c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Api/PubnubApi/Builder/ResponseBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ internal class ResponseBuilder
private readonly PNConfiguration config;
private readonly IJsonPluggableLibrary jsonLib;
private readonly IPubnubLog pubnubLog;
private readonly NewtonsoftJsonDotNet newtonsoftJsonDotNet;
private readonly EventDeserializer eventDeserializer;

public ResponseBuilder(PNConfiguration pubnubConfig, IJsonPluggableLibrary jsonPluggableLibrary, IPubnubLog log)
{
config = pubnubConfig;
jsonLib = jsonPluggableLibrary;
pubnubLog = log;
newtonsoftJsonDotNet = new NewtonsoftJsonDotNet(config, pubnubLog);
eventDeserializer = new EventDeserializer(jsonLib);
}

Expand All @@ -29,7 +27,8 @@ public T JsonToObject<T>(List<object> result, bool internalObject)
}
else
{
ret = newtonsoftJsonDotNet.DeserializeToObject<T>(result);
NewtonsoftJsonDotNet jsonNewtonLib = new NewtonsoftJsonDotNet(config, pubnubLog);
ret = jsonNewtonLib.DeserializeToObject<T>(result);
}

return ret;
Expand Down

0 comments on commit 18ff3c2

Please sign in to comment.