forked from LeanKit/LeanKit.API.Client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUser.cs
More file actions
95 lines (86 loc) · 2.62 KB
/
User.cs
File metadata and controls
95 lines (86 loc) · 2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
using System;
using System.Collections.Generic;
namespace LeanKit.Models
{
public class UserListRequest
{
public int? Offset { get; set; }
public int? Limit { get; set; }
}
public class UserListResponse
{
public UserListResponse()
{
Users = new List<User>();
}
public PageMeta PageMeta { get; set; }
public List<User> Users { get; set; }
public class User
{
public long Id { get; set; }
public long OrganizationId { get; set; }
public string Username { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string FullName { get; set; }
public string EmailAddress { get; set; }
public DateTime? LastAccess { get; set; }
public string DateFormat { get; set; }
public bool Administrator { get; set; }
public bool Enabled { get; set; }
public bool Deleted { get; set; }
public string Avatar { get; set; }
}
}
public class UserRecentBoardsResponse
{
public List<Board> Boards { get; set; }
public class Board
{
public long Id { get; set; }
public string Title { get; set; }
public string Description { get; set; }
public bool IsWelcome { get; set; }
public bool IsArchived { get; set; }
public string BoardRole { get; set; }
}
}
public class UserResponse
{
public UserResponse()
{
BoardRoles = new List<BoardRole>();
}
public UserSettings Settings { get; set; }
public List<BoardRole> BoardRoles { get; set; }
public long Id { get; set; }
public long OrganizationId { get; set; }
public string Username { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string FullName { get; set; }
public string EmailAddress { get; set; }
public DateTime LastAccess { get; set; }
public string DateFormat { get; set; }
public bool Administrator { get; set; }
public bool Enabled { get; set; }
public bool Deleted { get; set; }
public string Avatar { get; set; }
public class BoardRole
{
public long BoardId { get; set; }
public int Wip { get; set; }
public Role Role { get; set; }
}
public class Role
{
public string Key { get; set; }
public int Value { get; set; }
public string Label { get; set; }
}
public class UserSettings
{
public long[] RecentBoards { get; set; }
}
}
}