2022-06-02 17:48:47 -04:00
|
|
|
|
using System;
|
2022-06-05 17:27:56 -04:00
|
|
|
|
using System.Collections.Generic;
|
2022-06-15 20:37:34 -04:00
|
|
|
|
using Data.Models;
|
2022-06-05 17:27:56 -04:00
|
|
|
|
|
|
|
|
|
namespace WebfrontCore.QueryHelpers.Models;
|
2022-06-02 17:48:47 -04:00
|
|
|
|
|
|
|
|
|
public class BanInfo
|
|
|
|
|
{
|
2022-06-05 17:27:56 -04:00
|
|
|
|
public string ClientName { get; set; }
|
|
|
|
|
public int ClientId { get; set; }
|
|
|
|
|
public int? IPAddress { get; set; }
|
|
|
|
|
public long NetworkId { get; set; }
|
2022-06-15 20:37:34 -04:00
|
|
|
|
public Reference.Game Game { get; set; }
|
2022-06-05 17:27:56 -04:00
|
|
|
|
public PenaltyInfo AttachedPenalty { get; set; }
|
|
|
|
|
public IEnumerable<PenaltyInfo> AssociatedPenalties { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class PenaltyInfo
|
|
|
|
|
{
|
|
|
|
|
public RelatedClientInfo OffenderInfo { get; set; }
|
|
|
|
|
public RelatedClientInfo PunisherInfo { get; set; }
|
2022-06-02 17:48:47 -04:00
|
|
|
|
public string Offense { get; set; }
|
|
|
|
|
public DateTime? DateTime { get; set; }
|
2022-06-05 17:27:56 -04:00
|
|
|
|
|
|
|
|
|
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; }
|
2022-06-02 17:48:47 -04:00
|
|
|
|
}
|