2020-08-17 22:21:11 -04:00
|
|
|
|
using System;
|
2021-03-22 12:09:25 -04:00
|
|
|
|
using Data.Models;
|
2020-08-17 22:21:11 -04:00
|
|
|
|
|
|
|
|
|
namespace SharedLibraryCore.Dtos.Meta.Responses
|
|
|
|
|
{
|
|
|
|
|
public class ReceivedPenaltyResponse : BaseMetaResponse
|
|
|
|
|
{
|
|
|
|
|
public int PenaltyId { get; set; }
|
|
|
|
|
public int OffenderClientId { get; set; }
|
|
|
|
|
public string OffenderName { get; set; }
|
|
|
|
|
public string PunisherName { get; set; }
|
|
|
|
|
public int PunisherClientId { get; set; }
|
2021-03-22 12:09:25 -04:00
|
|
|
|
public EFPenalty.PenaltyType PenaltyType { get; set; }
|
2020-08-17 22:21:11 -04:00
|
|
|
|
public string Offense { get; set; }
|
|
|
|
|
public string AutomatedOffense { get; set; }
|
|
|
|
|
public DateTime? ExpirationDate { get; set; }
|
|
|
|
|
public string ExpiresInText => ExpirationDate.HasValue && ExpirationDate.Value > DateTime.UtcNow ? (ExpirationDate - DateTime.UtcNow).Value.HumanizeForCurrentCulture() : "";
|
|
|
|
|
public string LengthText => ExpirationDate.HasValue ? (ExpirationDate.Value.AddMinutes(1) - When).HumanizeForCurrentCulture() : "";
|
|
|
|
|
public bool IsLinked { get; set; }
|
|
|
|
|
public int LinkedClientId { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|