use wrapped dictionary as api params collection
This commit is contained in:
15
Pilz.Net/Api/ApiParameterCollection.cs
Normal file
15
Pilz.Net/Api/ApiParameterCollection.cs
Normal 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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user