BotSharp/src/Infrastructure/BotSharp.Abstraction/Conversations/Models/StateKeyValue.cs

37 lines
702 B
C#
Raw Normal View History

2023-09-09 21:44:25 +00:00
namespace BotSharp.Abstraction.Conversations.Models;
public class StateKeyValue
{
public string Key { get; set; }
2024-03-26 21:57:13 +00:00
public bool Versioning { get; set; }
2024-01-02 17:40:08 +00:00
public List<StateValue> Values { get; set; } = new List<StateValue>();
2023-09-09 21:44:25 +00:00
public StateKeyValue()
{
}
2024-01-02 17:40:08 +00:00
public StateKeyValue(string key, List<StateValue> values)
2023-09-09 21:44:25 +00:00
{
Key = key;
2024-01-02 17:40:08 +00:00
Values = values;
2023-09-09 21:44:25 +00:00
}
}
2024-01-02 17:40:08 +00:00
public class StateValue
{
public string Data { get; set; }
2024-03-26 22:09:49 +00:00
2024-03-26 21:57:13 +00:00
[JsonPropertyName("message_id")]
public string MessageId { get; set; }
2024-03-26 22:09:49 +00:00
2024-03-26 21:57:13 +00:00
public bool Active { get; set; }
2024-03-26 22:09:49 +00:00
2024-03-26 21:57:13 +00:00
[JsonPropertyName("update_time")]
2024-01-02 17:40:08 +00:00
public DateTime UpdateTime { get; set; }
public StateValue()
{
}
}