2017-03-11 22:42:27 -05:00
|
|
|
|
using System;
|
|
|
|
|
|
using Bit.Core.Models.Data;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Models.Api
|
|
|
|
|
|
{
|
2017-04-27 09:19:30 -04:00
|
|
|
|
public class OrganizationUserCollectionResponseModel : ResponseModel
|
2017-03-11 22:42:27 -05:00
|
|
|
|
{
|
2017-04-27 09:19:30 -04:00
|
|
|
|
public OrganizationUserCollectionResponseModel(CollectionUserCollectionDetails details,
|
|
|
|
|
|
string obj = "organizationUserCollection")
|
2017-03-11 22:42:27 -05:00
|
|
|
|
: base(obj)
|
|
|
|
|
|
{
|
|
|
|
|
|
if(details == null)
|
|
|
|
|
|
{
|
|
|
|
|
|
throw new ArgumentNullException(nameof(details));
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Id = details.Id.ToString();
|
|
|
|
|
|
Name = details.Name;
|
|
|
|
|
|
ReadOnly = details.ReadOnly;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
public bool ReadOnly { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|