28 lines
575 B
C#
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}";
|
|
}
|
|
}
|