Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/pubnub/c-sharp into pnsdk…
Browse files Browse the repository at this point in the history
…-fix
  • Loading branch information
jakub-grzesiowski committed Jan 20, 2025
2 parents cd51678 + c10b113 commit f0cdbd3
Show file tree
Hide file tree
Showing 17 changed files with 662 additions and 307 deletions.
19 changes: 12 additions & 7 deletions .pubnub.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
name: c-sharp
version: "7.1.0"
version: "7.1.1"
schema: 1
scm: github.com/pubnub/c-sharp
changelog:
- date: 2025-01-16
version: v7.1.1
changes:
- type: improvement
text: "Refactored event result data parsing logic within the subscribe feature for enhanced performance and maintainability."
- date: 2024-12-04
version: v7.1.0
changes:
Expand Down Expand Up @@ -813,7 +818,7 @@ features:
- QUERY-PARAM
supported-platforms:
-
version: Pubnub 'C#' 7.1.0
version: Pubnub 'C#' 7.1.1
platforms:
- Windows 10 and up
- Windows Server 2008 and up
Expand All @@ -824,7 +829,7 @@ supported-platforms:
- .Net Framework 4.6.1+
- .Net Framework 6.0
-
version: PubnubPCL 'C#' 7.1.0
version: PubnubPCL 'C#' 7.1.1
platforms:
- Xamarin.Android
- Xamarin.iOS
Expand All @@ -844,7 +849,7 @@ supported-platforms:
- .Net Core
- .Net 6.0
-
version: PubnubUWP 'C#' 7.1.0
version: PubnubUWP 'C#' 7.1.1
platforms:
- Windows Phone 10
- Universal Windows Apps
Expand All @@ -868,7 +873,7 @@ sdks:
distribution-type: source
distribution-repository: GitHub
package-name: Pubnub
location: https://github.com/pubnub/c-sharp/releases/tag/v7.1.0.0
location: https://github.com/pubnub/c-sharp/releases/tag/v7.1.1.0
requires:
-
name: ".Net"
Expand Down Expand Up @@ -1151,7 +1156,7 @@ sdks:
distribution-type: source
distribution-repository: GitHub
package-name: PubNubPCL
location: https://github.com/pubnub/c-sharp/releases/tag/v7.1.0.0
location: https://github.com/pubnub/c-sharp/releases/tag/v7.1.1.0
requires:
-
name: ".Net Core"
Expand Down Expand Up @@ -1510,7 +1515,7 @@ sdks:
distribution-type: source
distribution-repository: GitHub
package-name: PubnubUWP
location: https://github.com/pubnub/c-sharp/releases/tag/v7.1.0.0
location: https://github.com/pubnub/c-sharp/releases/tag/v7.1.1.0
requires:
-
name: "Universal Windows Platform Development"
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v7.1.1 - January 16 2025
-----------------------------
- Modified: refactored event result data parsing logic within the subscribe feature for enhanced performance and maintainability.

v7.1.0 - December 04 2024
-----------------------------
- Added: added support for CustomMessageType in publish, signal, files features.
Expand Down
7 changes: 7 additions & 0 deletions src/Api/PubnubApi/Builder/ResponseBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ internal class ResponseBuilder
private readonly PNConfiguration config;
private readonly IJsonPluggableLibrary jsonLib;
private readonly IPubnubLog pubnubLog;
private readonly EventDeserializer eventDeserializer;

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

public T JsonToObject<T>(List<object> result, bool internalObject)
Expand All @@ -31,5 +33,10 @@ public T JsonToObject<T>(List<object> result, bool internalObject)

return ret;
}

public T GetEventResultObject<T>(IDictionary<string, object> jsonFields)
{
return eventDeserializer.Deserialize<T>(jsonFields);
}
}
}
Loading

0 comments on commit f0cdbd3

Please sign in to comment.