add hour window
This commit is contained in:
@@ -5,18 +5,6 @@ namespace Blueberry.Redmine.Dto
|
||||
{
|
||||
public class UserInfo
|
||||
{
|
||||
public class CustomField
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("value")]
|
||||
public string Value { get; set; }
|
||||
}
|
||||
|
||||
public class Root
|
||||
{
|
||||
[JsonPropertyName("user")]
|
||||
@@ -39,6 +27,7 @@ namespace Blueberry.Redmine.Dto
|
||||
|
||||
[JsonPropertyName("lastname")]
|
||||
public string Lastname { get; set; }
|
||||
public string FullName => Lastname + " " + Firstname;
|
||||
|
||||
[JsonPropertyName("mail")]
|
||||
public string Mail { get; set; }
|
||||
@@ -50,22 +39,7 @@ namespace Blueberry.Redmine.Dto
|
||||
public DateTime UpdatedOn { get; set; }
|
||||
|
||||
[JsonPropertyName("last_login_on")]
|
||||
public DateTime LastLoginOn { get; set; }
|
||||
|
||||
[JsonPropertyName("passwd_changed_on")]
|
||||
public DateTime PasswdChangedOn { get; set; }
|
||||
|
||||
[JsonPropertyName("twofa_scheme")]
|
||||
public object TwofaScheme { get; set; }
|
||||
|
||||
[JsonPropertyName("api_key")]
|
||||
public string ApiKey { get; set; }
|
||||
|
||||
[JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
[JsonPropertyName("custom_fields")]
|
||||
public List<CustomField> CustomFields { get; set; }
|
||||
public DateTime? LastLoginOn { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
24
Blueberry.Redmine/Dto/UserList.cs
Normal file
24
Blueberry.Redmine/Dto/UserList.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
#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 UserList
|
||||
{
|
||||
public class Root : IResponseList
|
||||
{
|
||||
[JsonPropertyName("users")]
|
||||
public List<UserInfo.User> Users { get; set; }
|
||||
|
||||
[JsonPropertyName("total_count")]
|
||||
public int TotalCount { get; set; }
|
||||
|
||||
[JsonPropertyName("offset")]
|
||||
public int Offset { get; set; }
|
||||
|
||||
[JsonPropertyName("limit")]
|
||||
public int Limit { 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.
|
||||
Reference in New Issue
Block a user