BotSharp/BotSharp.Platform.Models/Intents/IntentResponseParameter.cs

36 lines
887 B
C#
Raw Normal View History

2018-10-03 01:44:11 +00:00
using BotSharp.Platform.Models.AiResponse;
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-10-03 01:44:11 +00:00
public class IntentResponseParameter
{
[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; }
}
}