2018-10-03 01:44:11 +00:00
|
|
|
|
using BotSharp.Platform.Models.AiResponse;
|
2018-03-21 21:07:43 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
2018-10-03 01:44:11 +00:00
|
|
|
|
namespace BotSharp.Platform.Models.Intents
|
2018-03-21 21:07:43 +00:00
|
|
|
|
{
|
2018-10-03 01:44:11 +00:00
|
|
|
|
public class IntentResponseParameter
|
2018-03-21 21:07:43 +00:00
|
|
|
|
{
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
[StringLength(36)]
|
|
|
|
|
|
public String IntentResponseId { get; set; }
|
2018-04-30 22:06:52 +00:00
|
|
|
|
|
2018-03-21 21:07:43 +00:00
|
|
|
|
public bool Required { get; set; }
|
2018-04-30 22:06:52 +00:00
|
|
|
|
|
|
|
|
|
|
[MaxLength(32)]
|
2018-03-21 21:07:43 +00:00
|
|
|
|
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)]
|
2018-03-21 21:07:43 +00:00
|
|
|
|
public string Name { get; set; }
|
2018-04-30 22:06:52 +00:00
|
|
|
|
|
|
|
|
|
|
[MaxLength(128)]
|
2018-03-21 21:07:43 +00:00
|
|
|
|
public string Value { get; set; }
|
2018-04-30 22:06:52 +00:00
|
|
|
|
|
2018-03-21 21:07:43 +00:00
|
|
|
|
public bool IsList { get; set; }
|
2018-06-07 05:53:38 +00:00
|
|
|
|
|
|
|
|
|
|
[ForeignKey("ResponseParameterId")]
|
|
|
|
|
|
public List<ResponseParameterPrompt> Prompts { get; set; }
|
2018-03-21 21:07:43 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|