2024-08-28 22:45:33 +00:00
|
|
|
namespace BotSharp.Abstraction.Models;
|
|
|
|
|
|
|
|
|
|
public class KeyValue
|
|
|
|
|
{
|
|
|
|
|
[JsonPropertyName("key")]
|
2025-03-10 03:21:34 +00:00
|
|
|
public string Key { get; set; } = string.Empty;
|
2024-08-28 22:45:33 +00:00
|
|
|
|
|
|
|
|
[JsonPropertyName("value")]
|
2025-03-10 03:21:34 +00:00
|
|
|
public string? Value { get; set; }
|
2024-09-07 16:00:11 +00:00
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return $"Key: {Key}, Value: {Value}";
|
|
|
|
|
}
|
2024-08-28 22:45:33 +00:00
|
|
|
}
|
2025-03-04 23:25:35 +00:00
|
|
|
|
|
|
|
|
public class KeyValue<T>
|
|
|
|
|
{
|
|
|
|
|
[JsonPropertyName("key")]
|
2025-03-10 03:21:34 +00:00
|
|
|
public string Key { get; set; } = string.Empty;
|
2025-03-04 23:25:35 +00:00
|
|
|
|
|
|
|
|
[JsonPropertyName("value")]
|
|
|
|
|
public T? Value { get; set; }
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return $"Key: {Key}, Value: {Value}";
|
|
|
|
|
}
|
|
|
|
|
}
|