29 lines
932 B
C#
29 lines
932 B
C#
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; }
|
|
}
|
|
} |