This commit is contained in:
2025-07-18 04:25:36 +03:30
parent 07d0fb50d3
commit 0bed7925e8
+6 -3
View File
@@ -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";
}
/// <summary>
@@ -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; }
/// <summary>
/// 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;