aboutsummaryrefslogtreecommitdiff
path: root/Plugins.Essentials/src/Users/IUser.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Plugins.Essentials/src/Users/IUser.cs')
-rw-r--r--Plugins.Essentials/src/Users/IUser.cs74
1 files changed, 0 insertions, 74 deletions
diff --git a/Plugins.Essentials/src/Users/IUser.cs b/Plugins.Essentials/src/Users/IUser.cs
deleted file mode 100644
index 28c5305..0000000
--- a/Plugins.Essentials/src/Users/IUser.cs
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
-* Copyright (c) 2022 Vaughn Nugent
-*
-* Library: VNLib
-* Package: VNLib.Plugins.Essentials
-* File: IUser.cs
-*
-* IUser.cs is part of VNLib.Plugins.Essentials which is part of the larger
-* VNLib collection of libraries and utilities.
-*
-* VNLib.Plugins.Essentials is free software: you can redistribute it and/or modify
-* it under the terms of the GNU Affero General Public License as
-* published by the Free Software Foundation, either version 3 of the
-* License, or (at your option) any later version.
-*
-* VNLib.Plugins.Essentials is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU Affero General Public License for more details.
-*
-* You should have received a copy of the GNU Affero General Public License
-* along with this program. If not, see https://www.gnu.org/licenses/.
-*/
-
-using System;
-using System.Collections.Generic;
-
-using VNLib.Utils;
-using VNLib.Utils.Async;
-using VNLib.Utils.Memory;
-
-#nullable enable
-
-namespace VNLib.Plugins.Essentials.Users
-{
- /// <summary>
- /// Represents an abstract user account
- /// </summary>
- public interface IUser : IAsyncExclusiveResource, IDisposable, IObjectStorage, IEnumerable<KeyValuePair<string, string>>, IIndexable<string, string>
- {
- /// <summary>
- /// The user's privilage level
- /// </summary>
- ulong Privilages { get; }
- /// <summary>
- /// The user's ID
- /// </summary>
- string UserID { get; }
- /// <summary>
- /// Date the user's account was created
- /// </summary>
- DateTimeOffset Created { get; }
- /// <summary>
- /// The user's password hash if retreived from the backing store, otherwise null
- /// </summary>
- PrivateString? PassHash { get; }
- /// <summary>
- /// Status of account
- /// </summary>
- UserStatus Status { get; set; }
- /// <summary>
- /// Is the account only usable from local network?
- /// </summary>
- bool LocalOnly { get; set; }
- /// <summary>
- /// The user's email address
- /// </summary>
- string EmailAddress { get; set; }
- /// <summary>
- /// Marks the user for deletion on release
- /// </summary>
- void Delete();
- }
-} \ No newline at end of file