BotSharp/src/Plugins/BotSharp.Plugin.MongoStorage/Collections/RoleAgentDocument.cs

26 lines
659 B
C#
Raw Normal View History

2024-11-14 23:33:26 +00:00
using BotSharp.Abstraction.Roles.Models;
namespace BotSharp.Plugin.MongoStorage.Collections;
public class RoleAgentDocument : MongoBase
{
public string RoleId { get; set; }
public string AgentId { get; set; }
public IEnumerable<string> Actions { get; set; } = [];
public DateTime CreatedTime { get; set; }
public DateTime UpdatedTime { get; set; }
public RoleAgent ToRoleAgent()
{
return new RoleAgent
{
Id = Id,
RoleId = RoleId,
AgentId = AgentId,
Actions = Actions,
CreatedTime = CreatedTime,
UpdatedTime = UpdatedTime
};
}
}