forked from jscarle/OnePassword.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUserBase.cs
More file actions
30 lines (26 loc) · 730 Bytes
/
UserBase.cs
File metadata and controls
30 lines (26 loc) · 730 Bytes
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
using OnePassword.Common;
namespace OnePassword.Users;
/// <summary>
/// Common base class that represents a 1Password user.
/// </summary>
public abstract class UserBase : ResultBase<IUser>, IUser
{
/// <summary>
/// The user email.
/// </summary>
[JsonInclude]
[JsonPropertyName("email")]
public string Email { get; internal set; } = "";
/// <summary>
/// The user type.
/// </summary>
[JsonInclude]
[JsonPropertyName("type")]
public UserType Type { get; internal set; } = UserType.Unknown;
/// <summary>
/// The state of the user.
/// </summary>
[JsonInclude]
[JsonPropertyName("state")]
public State State { get; internal set; } = State.Unknown;
}