namespace adas_core.Domain.Models.Responses; /// /// Represents the response data returned from a login operation. /// public class LoginResponse { public string Token { get; set; } = ""; public string RefreshToken { get; set; } = ""; public DateTime Expiration { get; set; } = DateTime.MinValue; /// /// Determines whether the item has expired by comparing its value to the current UTC time. /// Returns true when the expiration date has passed, or when no expiration date has been set (i.e., ), treating unset expirations as expired. /// /// true if the item is expired or has no expiration date set; otherwise, false. public bool IsExpired() { if (Expiration != DateTime.MinValue) { if (Expiration < DateTime.UtcNow) return true; return false; } return true; } }