mirror of
https://github.com/bitwarden/server.git
synced 2025-06-15 07:20:49 -05:00

* PM-22564 fixing namespaces * PM-22564 fixing namespace in integration test * PM-22564 fixing .sqlproj file
35 lines
1.5 KiB
C#
35 lines
1.5 KiB
C#
using Bit.Core.Dirt.Reports.Models.Data;
|
|
|
|
namespace Bit.Api.Dirt.Models.Response;
|
|
|
|
/// <summary>
|
|
/// Contains the collections and group collections a user has access to including
|
|
/// the permission level for the collection and group collection.
|
|
/// </summary>
|
|
public class MemberAccessReportResponseModel
|
|
{
|
|
public string UserName { get; set; }
|
|
public string Email { get; set; }
|
|
public bool TwoFactorEnabled { get; set; }
|
|
public bool AccountRecoveryEnabled { get; set; }
|
|
public int GroupsCount { get; set; }
|
|
public int CollectionsCount { get; set; }
|
|
public int TotalItemCount { get; set; }
|
|
public Guid? UserGuid { get; set; }
|
|
public bool UsesKeyConnector { get; set; }
|
|
public IEnumerable<MemberAccessDetails> AccessDetails { get; set; }
|
|
|
|
public MemberAccessReportResponseModel(MemberAccessCipherDetails memberAccessCipherDetails)
|
|
{
|
|
this.UserName = memberAccessCipherDetails.UserName;
|
|
this.Email = memberAccessCipherDetails.Email;
|
|
this.TwoFactorEnabled = memberAccessCipherDetails.TwoFactorEnabled;
|
|
this.AccountRecoveryEnabled = memberAccessCipherDetails.AccountRecoveryEnabled;
|
|
this.GroupsCount = memberAccessCipherDetails.GroupsCount;
|
|
this.CollectionsCount = memberAccessCipherDetails.CollectionsCount;
|
|
this.TotalItemCount = memberAccessCipherDetails.TotalItemCount;
|
|
this.UserGuid = memberAccessCipherDetails.UserGuid;
|
|
this.AccessDetails = memberAccessCipherDetails.AccessDetails;
|
|
}
|
|
}
|