BotSharp/src/Infrastructure/BotSharp.Abstraction/Models/KeyValue.cs

30 lines
593 B
C#
Raw Normal View History

2024-08-28 22:45:33 +00:00
namespace BotSharp.Abstraction.Models;
public class KeyValue
{
[JsonPropertyName("key")]
public string Key { get; set; } = string.Empty;
2024-08-28 22:45:33 +00:00
[JsonPropertyName("value")]
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")]
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}";
}
}