mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-16 16:23:41 +00:00
server configs and building group/user entries
This commit is contained in:
28
src/Core/Models/Entry.cs
Normal file
28
src/Core/Models/Entry.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Bit.Core.Models
|
||||
{
|
||||
public abstract class Entry
|
||||
{
|
||||
public string DistinguishedName { get; set; }
|
||||
public DateTime? CreationDate { get; set; }
|
||||
public DateTime? RevisionDate { get; set; }
|
||||
}
|
||||
|
||||
public class GroupEntry : Entry
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public HashSet<string> Members { get; set; } = new HashSet<string>();
|
||||
public List<GroupEntry> GroupMembers { get; set; } = new List<GroupEntry>();
|
||||
public List<UserEntry> UserMembers { get; set; } = new List<UserEntry>();
|
||||
}
|
||||
|
||||
public class UserEntry : Entry
|
||||
{
|
||||
public string Email { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user