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