From 0bed7925e80e5737ede73b6b837599dfbdc4c1cd Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Fri, 18 Jul 2025 04:25:36 +0330 Subject: [PATCH] last ... --- Dtos/XOpenActionDto.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dtos/XOpenActionDto.cs b/Dtos/XOpenActionDto.cs index 9205342..0841e28 100644 --- a/Dtos/XOpenActionDto.cs +++ b/Dtos/XOpenActionDto.cs @@ -1,3 +1,4 @@ +using System; using xCommons.Extensions; using xModels.Base; using xModels.Dtos; @@ -11,6 +12,7 @@ namespace xIdentityModels.Dtos { public const string HandShake = "HandShake"; public const string GetUserInfo = "GetUserInfo"; + public const string GetUserInfos = "GetUserInfos"; } /// @@ -23,7 +25,7 @@ namespace xIdentityModels.Dtos public string Payload { get; set; } public string Checksum { get; set; } public XDeviceDto Device { get; set; } - public long Timestamp { get; set; } + public string Timestamp { get; set; } /// /// Validate Model ... @@ -37,8 +39,9 @@ namespace xIdentityModels.Dtos !Timestamp.IsNull() && !Action.IsNullOrEmpty() && (Action == XOpenActions.HandShake || - Action == XOpenActions.GetUserInfo) && - !Timestamp.FromTimestamp().IsExPired(); + Action == XOpenActions.GetUserInfo || + Action == XOpenActions.GetUserInfos) && + !Int64.Parse(Timestamp).FromTimestamp().IsExPired(); // return result;