BotSharp/BotSharp.Core/Adapters/Dialogflow/DialogflowEntityEntry.cs

33 lines
730 B
C#
Raw Normal View History

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; }
[JsonProperty("synonyms")]
public List<String> Synonyms { get; set; }
public DialogflowEntityEntry()
{
}
public DialogflowEntityEntry(string value, List<string> synonyms)
{
this.Value = value;
this.Synonyms = synonyms;
}
public DialogflowEntityEntry(string value, string[] synonyms) : this(value, new List<string>(synonyms))
{
}
}
}