41 lines
1.0 KiB
C#
41 lines
1.0 KiB
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using xCommons.Extensions;
|
|
using xIdentityModels.Navigations;
|
|
using xModels.Base;
|
|
|
|
namespace xIdentityModels.Models {
|
|
public class XVerificationRequest : XBaseIntIDEntity {
|
|
|
|
[Required]
|
|
public string VerificationCode { get; set; }
|
|
|
|
public int NumberOfTries { get; set; }
|
|
public DateTime LastTryOn { get; set; }
|
|
|
|
[NotMapped]
|
|
public XActionRequestToken Request {
|
|
get {
|
|
return RequestStr.FromJSON<XActionRequestToken> ();
|
|
}
|
|
set {
|
|
RequestStr = value.ToJSON ();
|
|
}
|
|
}
|
|
|
|
public string RequestStr { get; set; }
|
|
|
|
[NotMapped]
|
|
public XDevice Device {
|
|
get {
|
|
return DeviceStr.FromJSON<XDevice> ();
|
|
}
|
|
set {
|
|
DeviceStr = value.ToJSON ();
|
|
}
|
|
}
|
|
|
|
public string DeviceStr { get; set; }
|
|
}
|
|
} |