mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-15 15:53:41 +00:00
28 lines
672 B
C#
28 lines
672 B
C#
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 Id { 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 class UserEntry : Entry
|
|
{
|
|
public string Email { get; set; }
|
|
public HashSet<string> Groups { get; set; } = new HashSet<string>();
|
|
}
|
|
}
|