Initial Commit ...
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user