use wrapped dictionary as api params collection

This commit is contained in:
2024-12-09 07:46:58 +01:00
parent cdd7915142
commit 45b58aa5a2
3 changed files with 25 additions and 10 deletions

View File

@@ -0,0 +1,15 @@
using Pilz.Extensions.Collections;
namespace Pilz.Net.Api;
public class ApiParameterCollection : Dictionary<string, object>
{
public ApiParameterCollection()
{
}
public ApiParameterCollection(IDictionary<string, object> source)
{
source.ForEach(kvp => Add(kvp.Key, kvp.Value));
}
}