mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 21:48:12 -05:00
26 lines
676 B
C#
26 lines
676 B
C#
using System;
|
|
using Bit.Core.Models.Table;
|
|
|
|
namespace Bit.Core.Models.Api
|
|
{
|
|
public class CollectionResponseModel : ResponseModel
|
|
{
|
|
public CollectionResponseModel(Collection collection)
|
|
: base("collection")
|
|
{
|
|
if(collection == null)
|
|
{
|
|
throw new ArgumentNullException(nameof(collection));
|
|
}
|
|
|
|
Id = collection.Id.ToString();
|
|
OrganizationId = collection.OrganizationId.ToString();
|
|
Name = collection.Name;
|
|
}
|
|
|
|
public string Id { get; set; }
|
|
public string OrganizationId { get; set; }
|
|
public string Name { get; set; }
|
|
}
|
|
}
|