BotSharp/src/Infrastructure/BotSharp.Abstraction/Models/MessageState.cs
Jicheng Lu 333d8a7302 fix
2025-06-18 14:29:25 -05:00

28 lines
575 B
C#

namespace BotSharp.Abstraction.Models;
public class MessageState
{
public string Key { get; set; }
public object Value { get; set; }
[JsonPropertyName("active_rounds")]
public int ActiveRounds { get; set; } = -1;
public MessageState()
{
}
public MessageState(string key, object value, int activeRounds = -1)
{
Key = key;
Value = value;
ActiveRounds = activeRounds;
}
public override string ToString()
{
return $"Key: {Key} => Value: {Value}, ActiveRounds: {ActiveRounds}";
}
}