BotSharp/BotSharp.Core/Intents/IntentResponseParameter.cs

37 lines
933 B
C#
Raw Normal View History

using EntityFrameworkCore.BootKit;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
2018-03-28 22:08:49 +00:00
namespace BotSharp.Core.Intents
{
[Table("Bot_IntentResponseParameter")]
public class IntentResponseParameter : DbRecord, IDbRecord
{
[Required]
[StringLength(36)]
public String IntentResponseId { get; set; }
2018-04-30 22:06:52 +00:00
public bool Required { get; set; }
2018-04-30 22:06:52 +00:00
[MaxLength(32)]
public string DataType { get; set; }
2018-04-30 22:06:52 +00:00
2018-06-06 16:20:02 +00:00
[MaxLength(128)]
public string DefaultValue { get; set; }
2018-04-30 22:06:52 +00:00
[MaxLength(64)]
public string Name { get; set; }
2018-04-30 22:06:52 +00:00
[MaxLength(128)]
public string Value { get; set; }
2018-04-30 22:06:52 +00:00
public bool IsList { get; set; }
2018-06-07 05:53:38 +00:00
[ForeignKey("ResponseParameterId")]
public List<ResponseParameterPrompt> Prompts { get; set; }
}
}