1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-07 02:52:50 -05:00

Subvault APIs

This commit is contained in:
Kyle Spearrin
2017-03-07 23:06:14 -05:00
parent 7ca8629a13
commit 7f4e79af63
16 changed files with 363 additions and 1 deletions

View File

@ -0,0 +1,25 @@
using System;
using Bit.Core.Domains;
namespace Bit.Api.Models
{
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; }
}
}