add ban management page

This commit is contained in:
RaidMax
2022-06-05 16:27:56 -05:00
parent c493fbe13d
commit acc967e50a
11 changed files with 484 additions and 86 deletions

View File

@ -1,12 +1,33 @@
using System;
using System.Collections.Generic;
namespace WebfrontCore.QueryHelpers.Models;
public class BanInfo
{
public string OffenderName { get; set; }
public int OffenderId { get; set; }
public string PunisherName { get; set; }
public int? PunisherId { get; set; }
public string ClientName { get; set; }
public int ClientId { get; set; }
public int? IPAddress { get; set; }
public long NetworkId { get; set; }
public PenaltyInfo AttachedPenalty { get; set; }
public IEnumerable<PenaltyInfo> AssociatedPenalties { get; set; }
}
public class PenaltyInfo
{
public RelatedClientInfo OffenderInfo { get; set; }
public RelatedClientInfo PunisherInfo { get; set; }
public string Offense { get; set; }
public DateTime? DateTime { get; set; }
public long? TimeStamp => DateTime.HasValue ? new DateTimeOffset(DateTime.Value, TimeSpan.Zero).ToUnixTimeSeconds() : null;
public long? TimeStamp =>
DateTime.HasValue ? new DateTimeOffset(DateTime.Value, TimeSpan.Zero).ToUnixTimeSeconds() : null;
}
public class RelatedClientInfo
{
public string ClientName { get; set; }
public int? ClientId { get; set; }
public int? IPAddress { get; set; }
public long? NetworkId { get; set; }
}

View File

@ -5,4 +5,7 @@ namespace WebfrontCore.QueryHelpers.Models;
public class BanInfoRequest : PaginationRequest
{
public string ClientName { get; set; }
public string ClientGuid { get; set; }
public int? ClientId { get; set; }
public string ClientIP { get; set; }
}