Skip to content

Commit

Permalink
Changed Params type to be Dictionary across codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-epic committed Mar 23, 2024
1 parent 0f8153f commit 84adfba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Zabbix/Entities/Item.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public class ItemPreprocessing

[JsonProperty("type")] public int? Type { get; set; }

[JsonProperty("params")] public string? Params { get; set; }
[JsonProperty("params")] public Dictionary<string, string>? Params { get; set; }

[JsonProperty("error_handler")] public int? ErrorHandler { get; set; }

Expand All @@ -178,7 +178,7 @@ public class ItemPreprocessing

#region Constructors

public ItemPreprocessing(int type, string @params, int errorHandler, string errorHandlerParams)
public ItemPreprocessing(int type, Dictionary<string, string> @params, int errorHandler, string errorHandlerParams)
{
Type = type;
Params = @params;
Expand Down
6 changes: 3 additions & 3 deletions Zabbix/Entities/ItemPrototype.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class ItemPrototype : BaseEntity
public int? OutputFormat { get; set; }

[JsonProperty("params")]
public string? Params { get; set; }
public Dictionary<string, string>? Params { get; set; }

[JsonProperty("parameters")]
public IList<object>? Parameters { get; set; }
Expand Down Expand Up @@ -218,7 +218,7 @@ public class ItemPrototypePreprocessing
public int? Type { get; set; }

[JsonProperty("params")]
public string? Params { get; set; }
public Dictionary<string, string>? Params { get; set; }

[JsonProperty("error_handler")]
public int? ErrorHandler { get; set; }
Expand All @@ -230,7 +230,7 @@ public class ItemPrototypePreprocessing

#region Constructors

public ItemPrototypePreprocessing(int type, string @params, int errorHandler, string errorHandlerParams)
public ItemPrototypePreprocessing(int type, Dictionary<string, string> @params, int errorHandler, string errorHandlerParams)
{
Type = type;
Params = @params;
Expand Down
6 changes: 3 additions & 3 deletions Zabbix/Entities/LLDRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public class LldRule : BaseEntity
public int? OutputFormat { get; set; }

[JsonProperty("params")]
public string? Params { get; set; }
public Dictionary<string, string>? Params { get; set; }

[JsonProperty("password")]
public string? Password { get; set; }
Expand Down Expand Up @@ -272,7 +272,7 @@ public class LLdRulePreprocessing
public int? Type { get; set; }

[JsonProperty("params")]
public string? Params { get; set; }
public Dictionary<string, string>? Params { get; set; }

[JsonProperty("error_handler")]
public int? ErrorHandler { get; set; }
Expand All @@ -284,7 +284,7 @@ public class LLdRulePreprocessing

#region Constructors

public LLdRulePreprocessing(int type, string @params, int errorHandler, string errorHandlerParams)
public LLdRulePreprocessing(int type, Dictionary<string, string> @params, int errorHandler, string errorHandlerParams)
{
Type = type;
Params = @params;
Expand Down

0 comments on commit 84adfba

Please sign in to comment.