38 lines
948 B
C#
38 lines
948 B
C#
using BotSharp.Core.Models;
|
|
using EntityFrameworkCore.BootKit;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Linq;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Text;
|
|
|
|
namespace BotSharp.Core.Intents
|
|
{
|
|
[Table("Bot_IntentResponseMessage")]
|
|
public class IntentResponseMessage : DbRecord, IDbRecord
|
|
{
|
|
[Required]
|
|
[StringLength(36)]
|
|
public String IntentResponseId { get; set; }
|
|
|
|
public AIResponseMessageType Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// json list data
|
|
/// </summary>
|
|
[MaxLength(1024)]
|
|
public String Speech { get; set; }
|
|
|
|
/// <summary>
|
|
/// custom json payload
|
|
/// </summary>
|
|
[MaxLength(1024)]
|
|
public String PayloadJson { get; set; }
|
|
|
|
[NotMapped]
|
|
public JObject Payload { get; set; }
|
|
}
|
|
}
|