using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace BotSharp.Platform.Models
{
///
/// Standard agent data structure
/// All other platform agent has to align with this standard data structure.
///
public class StandardAgent : AgentBase
{
public StandardAgent()
{
CreatedDate = DateTime.UtcNow;
Entities = new List();
Intents = new List();
}
///
/// Is the chatbot public or private
///
public Boolean Published { get; set; }
///
/// Only access text/ audio rquest
///
[StringLength(32)]
public String ClientAccessToken { get; set; }
///
/// Developer can access more APIs
///
[StringLength(32)]
public String DeveloperAccessToken { get; set; }
public List Intents { get; set; }
public List Entities { get; set; }
public String Birthday
{
get
{
return CreatedDate.ToShortDateString();
}
}
public DateTime CreatedDate { get; set; }
}
}