make properties nullable

This commit is contained in:
axell 2024-07-06 13:39:52 +02:00 committed by GitHub
parent 9397ebe261
commit e3cfbefc7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,21 +6,21 @@
public class UserInfoResponse public class UserInfoResponse
{ {
[JsonPropertyName("description")] [JsonPropertyName("description")]
public string ProfileDescription { get; set; } public string ProfileDescription { get; set; } = null!;
[JsonPropertyName("created")] [JsonPropertyName("created")]
public string JoinDate { get; set; } public string JoinDate { get; set; } = null!;
[JsonPropertyName("isBanned")] [JsonPropertyName("isBanned")]
public bool IsBanned { get; set; } public bool IsBanned { get; set; } = null!;
[JsonPropertyName("hasVerifiedBadge")] [JsonPropertyName("hasVerifiedBadge")]
public bool HasVerifiedBadge { get; set; } public bool HasVerifiedBadge { get; set; } = null!;
[JsonPropertyName("name")] [JsonPropertyName("name")]
public string Username { get; set; } public string Username { get; set; } = null!;
[JsonPropertyName("displayName")] [JsonPropertyName("displayName")]
public string DisplayName { get; set; } public string DisplayName { get; set; } = null!;
} }
} }