2018-10-03 01:44:11 +00:00
|
|
|
|
using System;
|
2017-12-18 13:31:15 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
2018-10-03 01:44:11 +00:00
|
|
|
|
namespace BotSharp.Platform.Models.Intents
|
2017-12-18 13:31:15 +00:00
|
|
|
|
{
|
2018-10-03 01:44:11 +00:00
|
|
|
|
public class IntentExpression
|
2017-12-18 13:31:15 +00:00
|
|
|
|
{
|
2017-12-30 20:26:35 +00:00
|
|
|
|
public IntentExpression()
|
|
|
|
|
|
{
|
2018-03-21 21:07:43 +00:00
|
|
|
|
Data = new List<IntentExpressionPart>();
|
2017-12-30 20:26:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2017-12-18 13:31:15 +00:00
|
|
|
|
[Required]
|
|
|
|
|
|
[StringLength(36)]
|
|
|
|
|
|
public String IntentId { get; set; }
|
|
|
|
|
|
|
2017-12-30 20:26:35 +00:00
|
|
|
|
[ForeignKey("ExpressionId")]
|
2018-03-21 21:07:43 +00:00
|
|
|
|
public List<IntentExpressionPart> Data { get; set; }
|
2017-12-18 13:31:15 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|