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
{
public StandardAgent()
{
CreatedDate = DateTime.UtcNow;
Entities = new List();
}
///
/// Guid
///
[StringLength(36)]
public String Id { get; set; }
///
/// Name of chatbot
///
[Required]
[MaxLength(64)]
public String Name { get; set; }
///
/// Description of chatbot
///
[MaxLength(256)]
public String Description { get; set; }
///
/// Is the chatbot public or private
///
public Boolean Published { get; set; }
///
///
///
[Required]
[MaxLength(5)]
public String Language { 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; }
///
/// Save extra information for specific platform
///
public TExtraData ExtraData { get; set; }
}
}