using BotSharp.Platform.Models.Intents; using BotSharp.Platform.Models.MachineLearning; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace BotSharp.Platform.Models { public abstract class AgentBase { public AgentBase() { CreatedDate = DateTime.UtcNow; Intents = new List(); } /// /// Guid /// [StringLength(36)] public String Id { get; set; } /// /// Name of chatbot /// [Required] [MaxLength(64)] public virtual String Name { get; set; } /// /// Description of chatbot /// [MaxLength(256)] public String Description { get; set; } /// /// /// [Required] [MaxLength(5)] public String Language { get; set; } [Required] public DateTime CreatedDate { get; set; } public TrainingCorpus Corpus { get; set; } public AgentMlConfig MlConfig { get; set; } public List Integrations { get; set; } 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 String Birthday { get { return CreatedDate.ToShortDateString(); } } } }