This commit is contained in:
Zeeshaun
2026-04-13 16:52:52 +00:00
parent c535080e37
commit 26d007182d
11 changed files with 52 additions and 19 deletions
@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>1.0.0</Version>
<Description>LCU Internal MaidBot model definitions.</Description>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.ComponentModel.Annotations" Version="4.7.0" />
</ItemGroup>
</Project>
@@ -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,23 @@
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,10 @@
namespace LCU.Api.Internal.MaidBotLib.Models
{
public enum GroupEnum
{
Testing,
ITDevelopment,
BusinessOperations,
IndirectLending
}
}
@@ -0,0 +1,23 @@
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
}
}