BotSharp/BotSharp.Core/Agents/Agent.cs
haiping008@gmail.com 6c472545c0 Rename project
2018-03-28 17:08:49 -05:00

43 lines
1.1 KiB
C#

using BotSharp.Core.Entities;
using BotSharp.Core.Intents;
using EntityFrameworkCore.BootKit;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace BotSharp.Core.Agents
{
[Table("Bot_Agent")]
public class Agent : DbRecord, IDbRecord
{
[MaxLength(64)]
public String Name { get; set; }
public String Description { get; set; }
public Boolean Published { get; set; }
public String Language { get; set; }
/// <summary>
/// Only access text/ audio rquest
/// </summary>
public String ClientAccessToken { get; set; }
/// <summary>
/// Developer can access more APIs
/// </summary>
public String DeveloperAccessToken { get; set; }
[ForeignKey("AgentId")]
public List<Intent> Intents { get; set; }
[ForeignKey("AgentId")]
[JsonProperty("entity_types")]
public List<Entity> Entities { get; set; }
}
}