21 lines
642 B
C#
21 lines
642 B
C#
using MongoDB.Bson;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
using MongoDB.Bson.Serialization.Options;
|
|
|
|
namespace ChatApi.Services.Bot.Structs
|
|
{
|
|
public class ChatState
|
|
{
|
|
[BsonId]
|
|
[BsonElement("_id")]
|
|
public string Id { get; set; }
|
|
public string UsuarioId { get; set; }
|
|
public int IndicePerguntaAtual { get; set; }
|
|
public int TentativasPerguntaAtual { get; set; }
|
|
|
|
[BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
|
|
public Dictionary<int, string> Respostas { get; set; }
|
|
public Dictionary<string, string> DadosConhecidos { get; set; }
|
|
}
|
|
}
|