BotSharp/BotSharp.Core/Engines/Dialogflow/DialogflowEntityEntry.cs

35 lines
789 B
C#
Raw Normal View History

2018-04-02 22:42:11 +00:00
using BotSharp.Core.Entities;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
2018-03-28 22:08:49 +00:00
namespace BotSharp.Core.Adapters.Dialogflow
{
[JsonObject]
public class DialogflowEntityEntry
{
[JsonProperty("value")]
public string Value { get; set; }
2018-04-02 22:42:11 +00:00
public List<String> RawSynonyms { get; set; }
2018-05-22 00:39:33 +00:00
public List<EntrySynonym> Synonyms { get; set; }
public DialogflowEntityEntry()
{
}
public DialogflowEntityEntry(string value, List<string> synonyms)
{
this.Value = value;
2018-04-02 22:42:11 +00:00
this.RawSynonyms = synonyms;
}
public DialogflowEntityEntry(string value, string[] synonyms) : this(value, new List<string>(synonyms))
{
}
}
}