diff options
author | 杨宇千 <crupest@outlook.com> | 2019-10-19 21:37:15 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-10-19 21:37:15 +0800 |
commit | b00cfa30a4f6a1c6d896d46da7dd063abf632cd3 (patch) | |
tree | e6168234660307247111ee369a0b2123823614eb /Timeline/Models/UserDetail.cs | |
parent | 2984abc9aa0429380459e5b5b6fda2d20058041b (diff) | |
download | timeline-b00cfa30a4f6a1c6d896d46da7dd063abf632cd3.tar.gz timeline-b00cfa30a4f6a1c6d896d46da7dd063abf632cd3.tar.bz2 timeline-b00cfa30a4f6a1c6d896d46da7dd063abf632cd3.zip |
...
Diffstat (limited to 'Timeline/Models/UserDetail.cs')
-rw-r--r-- | Timeline/Models/UserDetail.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Timeline/Models/UserDetail.cs b/Timeline/Models/UserDetail.cs index 1a6c0c6a..302e3bb1 100644 --- a/Timeline/Models/UserDetail.cs +++ b/Timeline/Models/UserDetail.cs @@ -8,21 +8,21 @@ namespace Timeline.Models public class UserDetail
{
[MaxLength(10)]
- public string Nickname { get; set; }
+ public string? Nickname { get; set; }
[ValidateWith(typeof(UserDetailValidators.QQValidator))]
[JsonProperty(PropertyName = "qq")]
- public string QQ { get; set; }
+ public string? QQ { get; set; }
[ValidateWith(typeof(UserDetailValidators.EMailValidator))]
- public string Email { get; set; }
+ public string? Email { get; set; }
[ValidateWith(typeof(UserDetailValidators.PhoneNumberValidator))]
- public string PhoneNumber { get; set; }
+ public string? PhoneNumber { get; set; }
- public string Description { get; set; }
+ public string? Description { get; set; }
- private static string CoerceEmptyToNull(string value)
+ private static string? CoerceEmptyToNull(string? value)
{
if (string.IsNullOrEmpty(value))
return null;
|