mirror of
https://github.com/bitwarden/server.git
synced 2026-02-17 06:13:12 +08:00
26 lines
656 B
C#
26 lines
656 B
C#
using System;
|
|
using Bit.Core.Models.Table;
|
|
|
|
namespace Bit.Core.Models.Api
|
|
{
|
|
public class SubvaultResponseModel : ResponseModel
|
|
{
|
|
public SubvaultResponseModel(Subvault subvault)
|
|
: base("subvault")
|
|
{
|
|
if(subvault == null)
|
|
{
|
|
throw new ArgumentNullException(nameof(subvault));
|
|
}
|
|
|
|
Id = subvault.Id.ToString();
|
|
OrganizationId = subvault.OrganizationId.ToString();
|
|
Name = subvault.Name;
|
|
}
|
|
|
|
public string Id { get; set; }
|
|
public string OrganizationId { get; set; }
|
|
public string Name { get; set; }
|
|
}
|
|
}
|