BotSharp/BotSharp.Core/Models/Intents/IntentResponseMessage.cs

42 lines
1,012 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 IntentResponseMessage
{
[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; }
/// <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]
2018-10-03 01:44:11 +00:00
public Object Payload { get; set; }
public DateTime UpdatedTime { get; set; }
}
}