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;