From 07d0fb50d397e97b573a315b5d41520768fc7eff Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Thu, 17 Jul 2025 09:28:10 +0330 Subject: [PATCH] last ... --- Dtos/XOpenActionDto.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dtos/XOpenActionDto.cs b/Dtos/XOpenActionDto.cs index 918a0d3..9205342 100644 --- a/Dtos/XOpenActionDto.cs +++ b/Dtos/XOpenActionDto.cs @@ -1,4 +1,3 @@ -using System; using xCommons.Extensions; using xModels.Base; using xModels.Dtos; @@ -24,7 +23,7 @@ namespace xIdentityModels.Dtos public string Payload { get; set; } public string Checksum { get; set; } public XDeviceDto Device { get; set; } - public DateTime Timestamp { get; set; } + public long Timestamp { get; set; } /// /// Validate Model ... @@ -36,10 +35,10 @@ namespace xIdentityModels.Dtos var result = !Device.IsNull() && !Timestamp.IsNull() && - !Timestamp.IsExPired() && !Action.IsNullOrEmpty() && (Action == XOpenActions.HandShake || - Action == XOpenActions.GetUserInfo); + Action == XOpenActions.GetUserInfo) && + !Timestamp.FromTimestamp().IsExPired(); // return result;