BotSharp/BotSharp.Platform.Models/Intents/IntentResponse.cs

39 lines
996 B
C#
Raw Normal View History

2018-10-03 01:44:11 +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-10-03 01:44:11 +00:00
public class IntentResponse
{
2018-10-03 01:44:11 +00:00
/// <summary>
/// Guid
/// </summary>
[StringLength(36)]
public String Id { get; set; }
[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; }
[NotMapped]
public string IntentName { get; set; }
}
}