2018-03-28 22:08:49 +00:00
|
|
|
|
using BotSharp.Core.Models;
|
2018-03-21 21:07:43 +00:00
|
|
|
|
using EntityFrameworkCore.BootKit;
|
2018-05-23 05:11:15 +00:00
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
using Newtonsoft.Json.Linq;
|
2018-03-21 21:07:43 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
2018-03-28 22:08:49 +00:00
|
|
|
|
namespace BotSharp.Core.Intents
|
2018-03-21 21:07:43 +00:00
|
|
|
|
{
|
|
|
|
|
|
[Table("Bot_IntentResponseMessage")]
|
|
|
|
|
|
public class IntentResponseMessage : DbRecord, IDbRecord
|
|
|
|
|
|
{
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
[StringLength(36)]
|
|
|
|
|
|
public String IntentResponseId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public AIResponseMessageType Type { get; set; }
|
|
|
|
|
|
|
2018-07-12 15:07:05 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Platform like: facebook, slack
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public String Platform { get; set; }
|
|
|
|
|
|
|
2018-03-21 21:07:43 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// json list data
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[MaxLength(1024)]
|
|
|
|
|
|
public String Speech { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// custom json payload
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[MaxLength(1024)]
|
2018-05-23 05:11:15 +00:00
|
|
|
|
public String PayloadJson { get; set; }
|
|
|
|
|
|
|
2018-07-12 15:07:05 +00:00
|
|
|
|
public String CardJson { get; set; }
|
|
|
|
|
|
|
2018-05-23 05:11:15 +00:00
|
|
|
|
[NotMapped]
|
|
|
|
|
|
public JObject Payload { get; set; }
|
2018-03-21 21:07:43 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|