Initial Commit ...

This commit is contained in:
2024-01-25 04:42:47 +03:30
commit 844b4c47ad
50 changed files with 2615 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
using System;
using Newtonsoft.Json;
namespace xIdentityModels.Models {
/// <summary>
/// represent a system wide action result
/// </summary>
public class XActionResponse {
/// <summary>
/// ActionToken
/// </summary>
/// <value>a hashed string which carry required info for doing system actions.</value>
[JsonProperty (
"token",
Required = Required.Default,
NullValueHandling = NullValueHandling.Ignore)]
public string Token { get; set; }
/// <summary>
/// ActionToken Lifetime
/// </summary>
/// <value>an instance of <see>DateTime</see> which represent token expiration time</value>
[JsonProperty (
"expiration",
Required = Required.DisallowNull,
NullValueHandling = NullValueHandling.Ignore)]
public DateTime Expiration { get; set; }
}
}