5 Commits
Author SHA1 Message Date
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
2 changed files with 28 additions and 23 deletions
@@ -111,6 +111,6 @@ public class NotificationApiServer
/// <returns>The HTTP response message.</returns>
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);
}
}
@@ -1,28 +1,33 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Version>1.0.4.0</Version>
<RepositoryUrl>https://github.com/Stone-Red-Software/StoneRed.NetificationApi</RepositoryUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Description>A .NET library for NotificationAPI</Description>
<PackageProjectUrl>https://github.com/Stone-Red-Software/StoneRed.NetificationApi</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Version>1.0.4.20240314</Version>
<RepositoryUrl>https://github.com/Stone-Red-Software/StoneRed.NetificationApi</RepositoryUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Description>A .NET library for NotificationAPI</Description>
<PackageProjectUrl>https://github.com/Stone-Red-Software/StoneRed.NetificationApi</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup>
<None Include="..\..\README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>
<PropertyGroup>
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
<Deterministic>False</Deterministic>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Websocket.Client" Version="5.1.1" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Websocket.Client" Version="5.1.1" />
</ItemGroup>
</Project>