2018-10-03 01:44:11 +00:00
|
|
|
|
using System;
|
2018-03-21 21:07:43 +00:00
|
|
|
|
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 IntentResponse
|
2018-03-21 21:07:43 +00:00
|
|
|
|
{
|
2018-10-03 01:44:11 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Guid
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[StringLength(36)]
|
|
|
|
|
|
public String Id { get; set; }
|
|
|
|
|
|
|
2018-03-21 21:07:43 +00:00
|
|
|
|
[Required]
|
|
|
|
|
|
[StringLength(36)]
|
|
|
|
|
|
public String IntentId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[MaxLength(128)]
|
|
|
|
|
|
public String Action { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public Boolean ResetContexts { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[ForeignKey("IntentResponseId")]
|
|
|
|
|
|
public List<IntentResponseContext> Contexts { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[ForeignKey("IntentResponseId")]
|
|
|
|
|
|
public List<IntentResponseParameter> Parameters { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[ForeignKey("IntentResponseId")]
|
|
|
|
|
|
public List<IntentResponseMessage> Messages { get; set; }
|
2018-05-07 00:48:10 +00:00
|
|
|
|
|
|
|
|
|
|
[NotMapped]
|
|
|
|
|
|
public string IntentName { get; set; }
|
2018-03-21 21:07:43 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|