Adding MaidBotApi

This commit is contained in:
Zeeshaun
2026-03-11 13:21:47 -05:00
parent f3cb730f3b
commit f004c8205a
122 changed files with 4227 additions and 0 deletions
@@ -0,0 +1,20 @@
namespace LCU.Api.Internal.MaidBotLib.Models
{
public class DebugEventLog
{
public const int DebugMaxLength = 3000;
public DebugEventLog()
{
}
public DebugEventLog(EventLog eventLog)
{
RawLog = eventLog.DebugData.Length > DebugMaxLength ? eventLog.DebugData.Substring(0, DebugMaxLength) : eventLog.DebugData;
}
public int DebugEventLogId { get; set; }
public string RawLog { get; set; }
}
}
@@ -0,0 +1,16 @@
using System;
namespace LCU.Api.Internal.MaidBotLib.Models
{
public class EventLog
{
public int EventLogId { get; set; }
public string Application { get; set; }
public string Level { get; set; }
public string Group { get; set; }
public DateTime LogTimeStamp { get; set; }
public string Message { get; set; }
public string Environment { get; set; }
public string DebugData { get; set; }
}
}
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace LCU.Api.Internal.MaidBotLib.Models
{
public enum GroupEnum
{
Testing,
ITDevelopment,
BusinessOperations,
IndirectLending
}
}
@@ -0,0 +1,18 @@
using System.ComponentModel.DataAnnotations;
namespace LCU.Api.Internal.MaidBotLib.Models
{
public class LoggingMatrix
{
public int LoggingMatrixId { get; set; }
[StringLength(200, MinimumLength = 1, ErrorMessage = "Application field must have a length between 1 and 200 characters")]
public string Application { get; set; }
[StringLength(50, MinimumLength = 1, ErrorMessage = "Level field must have a length between 1 and 50 characters")]
public string Level { get; set; }
[StringLength(100, MinimumLength = 1, ErrorMessage = "Groups field must have a length between 1 and 100 characters")]
public string Group { get; set; }
[StringLength(100, MinimumLength = 1, ErrorMessage = "Emails field must have a length between 1 and 100 characters")]
public string Email { get; set; }
public bool Disabled { get; set; }
}
}
@@ -0,0 +1,7 @@
namespace LCU.Api.Internal.MaidBotLib.Models
{
public enum PropertyEnum
{
Group
}
}