last ...
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
using System;
|
||||||
using xCommons.Extensions;
|
using xCommons.Extensions;
|
||||||
using xModels.Base;
|
using xModels.Base;
|
||||||
using xModels.Dtos;
|
using xModels.Dtos;
|
||||||
@@ -11,6 +12,7 @@ namespace xIdentityModels.Dtos
|
|||||||
{
|
{
|
||||||
public const string HandShake = "HandShake";
|
public const string HandShake = "HandShake";
|
||||||
public const string GetUserInfo = "GetUserInfo";
|
public const string GetUserInfo = "GetUserInfo";
|
||||||
|
public const string GetUserInfos = "GetUserInfos";
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -23,7 +25,7 @@ namespace xIdentityModels.Dtos
|
|||||||
public string Payload { get; set; }
|
public string Payload { get; set; }
|
||||||
public string Checksum { get; set; }
|
public string Checksum { get; set; }
|
||||||
public XDeviceDto Device { get; set; }
|
public XDeviceDto Device { get; set; }
|
||||||
public long Timestamp { get; set; }
|
public string Timestamp { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Validate Model ...
|
/// Validate Model ...
|
||||||
@@ -37,8 +39,9 @@ namespace xIdentityModels.Dtos
|
|||||||
!Timestamp.IsNull() &&
|
!Timestamp.IsNull() &&
|
||||||
!Action.IsNullOrEmpty() &&
|
!Action.IsNullOrEmpty() &&
|
||||||
(Action == XOpenActions.HandShake ||
|
(Action == XOpenActions.HandShake ||
|
||||||
Action == XOpenActions.GetUserInfo) &&
|
Action == XOpenActions.GetUserInfo ||
|
||||||
!Timestamp.FromTimestamp().IsExPired();
|
Action == XOpenActions.GetUserInfos) &&
|
||||||
|
!Int64.Parse(Timestamp).FromTimestamp().IsExPired();
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user