mirror of
https://github.com/bitwarden/server.git
synced 2025-04-24 06:25:09 -05:00
31 lines
893 B
C#
31 lines
893 B
C#
using System;
|
|
using Bit.Core.Models.Data;
|
|
|
|
namespace Bit.Core.Models.Api
|
|
{
|
|
public class OrganizationUserSubvaultResponseModel : ResponseModel
|
|
{
|
|
public OrganizationUserSubvaultResponseModel(SubvaultUserSubvaultDetails details,
|
|
string obj = "organizationUserSubvault")
|
|
: base(obj)
|
|
{
|
|
if(details == null)
|
|
{
|
|
throw new ArgumentNullException(nameof(details));
|
|
}
|
|
|
|
Id = details.Id.ToString();
|
|
Name = details.Name;
|
|
SubvaultId = details.SubvaultId.ToString();
|
|
ReadOnly = details.ReadOnly;
|
|
Admin = details.Admin;
|
|
}
|
|
|
|
public string Id { get; set; }
|
|
public string Name { get; set; }
|
|
public string SubvaultId { get; set; }
|
|
public bool ReadOnly { get; set; }
|
|
public bool Admin { get; set; }
|
|
}
|
|
}
|