2024-08-13 21:36:12 +00:00
|
|
|
using BotSharp.Abstraction.Agents.Models;
|
|
|
|
|
|
|
|
|
|
namespace BotSharp.Plugin.MongoStorage.Models;
|
|
|
|
|
|
2025-02-08 21:49:26 +00:00
|
|
|
[BsonIgnoreExtraElements(Inherited = true)]
|
2024-08-13 21:36:12 +00:00
|
|
|
public class ChannelInstructionMongoElement
|
|
|
|
|
{
|
|
|
|
|
public string Channel { get; set; }
|
|
|
|
|
public string Instruction { get; set; }
|
|
|
|
|
|
|
|
|
|
public static ChannelInstructionMongoElement ToMongoElement(ChannelInstruction instruction)
|
|
|
|
|
{
|
|
|
|
|
return new ChannelInstructionMongoElement
|
|
|
|
|
{
|
|
|
|
|
Channel = instruction.Channel,
|
|
|
|
|
Instruction = instruction.Instruction
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static ChannelInstruction ToDomainElement(ChannelInstructionMongoElement instruction)
|
|
|
|
|
{
|
|
|
|
|
return new ChannelInstruction
|
|
|
|
|
{
|
|
|
|
|
Channel = instruction.Channel,
|
|
|
|
|
Instruction = instruction.Instruction
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|