49 lines
1.5 KiB
C#
49 lines
1.5 KiB
C#
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring as nullable.
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Blueberry.Redmine.Dto
|
|
{
|
|
public class UserInfo
|
|
{
|
|
public class Root
|
|
{
|
|
[JsonPropertyName("user")]
|
|
public User User { get; set; }
|
|
}
|
|
|
|
public class User
|
|
{
|
|
[JsonPropertyName("id")]
|
|
public int Id { get; set; }
|
|
|
|
[JsonPropertyName("login")]
|
|
public string Login { get; set; }
|
|
|
|
[JsonPropertyName("admin")]
|
|
public bool Admin { get; set; }
|
|
|
|
[JsonPropertyName("firstname")]
|
|
public string Firstname { get; set; }
|
|
|
|
[JsonPropertyName("lastname")]
|
|
public string Lastname { get; set; }
|
|
public string FullName => Lastname + " " + Firstname;
|
|
|
|
[JsonPropertyName("mail")]
|
|
public string Mail { get; set; }
|
|
|
|
[JsonPropertyName("created_on")]
|
|
public DateTime CreatedOn { get; set; }
|
|
|
|
[JsonPropertyName("updated_on")]
|
|
public DateTime UpdatedOn { get; set; }
|
|
|
|
[JsonPropertyName("last_login_on")]
|
|
public DateTime? LastLoginOn { get; set; }
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring as nullable.
|