BotSharp/BotSharp.Platform.Models/AgentBase.cs

47 lines
1,010 B
C#
Raw Normal View History

2018-09-29 18:18:34 +00:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace BotSharp.Platform.Models
{
public abstract class AgentBase
{
2018-10-03 06:00:07 +00:00
public AgentBase()
{
CreatedDate = DateTime.UtcNow;
}
2018-09-29 18:18:34 +00:00
/// <summary>
/// Guid
/// </summary>
[StringLength(36)]
public String Id { get; set; }
/// <summary>
/// Name of chatbot
/// </summary>
[Required]
[MaxLength(64)]
public virtual String Name { get; set; }
/// <summary>
/// Description of chatbot
/// </summary>
[MaxLength(256)]
public String Description { get; set; }
/// <summary>
///
/// </summary>
[Required]
[MaxLength(5)]
public String Language { get; set; }
2018-10-03 06:00:07 +00:00
[Required]
public DateTime CreatedDate { get; set; }
public TrainingCorpus Corpus { get; set; }
2018-09-29 18:18:34 +00:00
}
}