mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 21:48:12 -05:00
29 lines
834 B
C#
29 lines
834 B
C#
using System;
|
|
using Bit.Core.Models.Data;
|
|
|
|
namespace Bit.Core.Models.Api
|
|
{
|
|
public class OrganizationUserCollectionResponseModel : ResponseModel
|
|
{
|
|
public OrganizationUserCollectionResponseModel(CollectionUserCollectionDetails details,
|
|
string obj = "organizationUserCollection")
|
|
: base(obj)
|
|
{
|
|
if(details == null)
|
|
{
|
|
throw new ArgumentNullException(nameof(details));
|
|
}
|
|
|
|
Id = details.Id.ToString();
|
|
Name = details.Name;
|
|
CollectionId = details.CollectionId.ToString();
|
|
ReadOnly = details.ReadOnly;
|
|
}
|
|
|
|
public string Id { get; set; }
|
|
public string Name { get; set; }
|
|
public string CollectionId { get; set; }
|
|
public bool ReadOnly { get; set; }
|
|
}
|
|
}
|