7 Commits
Author SHA1 Message Date
Stone_Red e88e005801 Merge pull request #4 from Stone-Red-Software/Stone-Red-Code-patch-1
Add note to README.md
2024-03-31 12:18:38 +02:00
Stone_Red 2d43ca410e Add note to README.md 2024-03-31 12:18:28 +02:00
Stone_Red 07f8409e88 Merge pull request #3 from Stone-Red-Software/development
Fix version number support
2024-03-14 17:41:57 +01:00
Stone_Red fa47277eeb Fix version number support 2024-03-14 17:41:30 +01:00
Stone_Red 198ae4bfe7 Merge pull request #2 from Stone-Red-Software/development
Development
2024-03-14 17:35:21 +01:00
Stone_Red 02c16d4bd8 Update package version 2024-03-14 17:34:23 +01:00
Stone_Red 28a320a41a Fix invalid request body in SetUserPreferences method 2024-03-14 17:33:59 +01:00
3 changed files with 32 additions and 23 deletions
+4
View File
@@ -2,6 +2,10 @@
> A .NET library for NotificationAPI > A .NET library for NotificationAPI
> [!NOTE]
> An official NotifcationAPI .NET server SDK is now available at [notificationapi-com/notificationapi-dotnet-server-sdk](https://github.com/notificationapi-com/notificationapi-dotnet-server-sdk)\
> Client-side functionality is currently not available in the official library, this is why this repository will still be maintained.
This is an *unofficial* library for [NotificationAPI](https://www.notificationapi.com/) and attempts to replicate the functionality of the official [Server SDK](https://docs.notificationapi.com/reference/server) and [JS Client SDK](https://docs.notificationapi.com/reference/js-client) as closely as possible.\ This is an *unofficial* library for [NotificationAPI](https://www.notificationapi.com/) and attempts to replicate the functionality of the official [Server SDK](https://docs.notificationapi.com/reference/server) and [JS Client SDK](https://docs.notificationapi.com/reference/js-client) as closely as possible.\
(A prebuilt notification widget is not included in this library.) (A prebuilt notification widget is not included in this library.)
@@ -111,6 +111,6 @@ public class NotificationApiServer
/// <returns>The HTTP response message.</returns> /// <returns>The HTTP response message.</returns>
public async Task<HttpResponseMessage> SetUserPreferences(string userId, SetUserPreferencesData setUserPreferencesData) public async Task<HttpResponseMessage> SetUserPreferences(string userId, SetUserPreferencesData setUserPreferencesData)
{ {
return await httpClient.PostAsJsonAsync($"user_preferences/{userId}", setUserPreferencesData, Configuration.JsonSerializerOptions); return await httpClient.PostAsJsonAsync($"user_preferences/{userId}", setUserPreferencesData.Preferences, Configuration.JsonSerializerOptions);
} }
} }
@@ -5,7 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild> <GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Version>1.0.4.0</Version> <Version>1.0.4.20240314</Version>
<RepositoryUrl>https://github.com/Stone-Red-Software/StoneRed.NetificationApi</RepositoryUrl> <RepositoryUrl>https://github.com/Stone-Red-Software/StoneRed.NetificationApi</RepositoryUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression> <PackageLicenseExpression>MIT</PackageLicenseExpression>
<Description>A .NET library for NotificationAPI</Description> <Description>A .NET library for NotificationAPI</Description>
@@ -14,6 +14,11 @@
<GenerateDocumentationFile>True</GenerateDocumentationFile> <GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup> </PropertyGroup>
<PropertyGroup>
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
<Deterministic>False</Deterministic>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<None Include="..\..\README.md"> <None Include="..\..\README.md">
<Pack>True</Pack> <Pack>True</Pack>