37 lines
797 B
C#
37 lines
797 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Text;
|
|
|
|
namespace BotSharp.Platform.Models
|
|
{
|
|
public abstract class AgentBase
|
|
{
|
|
/// <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; }
|
|
}
|
|
}
|