forked from jscarle/OnePassword.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGroupBase.cs
More file actions
30 lines (26 loc) · 781 Bytes
/
GroupBase.cs
File metadata and controls
30 lines (26 loc) · 781 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.Groups;
/// <summary>
/// Common base class that represents a 1Password group.
/// </summary>
public abstract class GroupBase : ResultBase<IGroup>, IGroup
{
/// <summary>
/// The group description.
/// </summary>
[JsonInclude]
[JsonPropertyName("description")]
public string Description { get; internal set; } = "";
/// <summary>
/// The state of the group.
/// </summary>
[JsonInclude]
[JsonPropertyName("state")]
public State State { get; internal set; } = State.Unknown;
/// <summary>
/// The date and time when the group was created.
/// </summary>
[JsonInclude]
[JsonPropertyName("created_at")]
public DateTimeOffset Created { get; internal set; }
}