2022-06-29 19:46:41 -04:00
|
|
|
|
using Bit.Core.Models.Data;
|
2017-05-11 11:41:13 -04:00
|
|
|
|
|
2022-08-29 14:53:16 -04:00
|
|
|
|
namespace Bit.Api.Models.Response;
|
|
|
|
|
|
|
|
|
|
|
|
public class SelectionReadOnlyResponseModel
|
2017-05-11 11:41:13 -04:00
|
|
|
|
{
|
2022-08-29 14:53:16 -04:00
|
|
|
|
public SelectionReadOnlyResponseModel(SelectionReadOnly selection)
|
2017-05-11 11:41:13 -04:00
|
|
|
|
{
|
2022-08-29 14:53:16 -04:00
|
|
|
|
if (selection == null)
|
2017-05-11 11:41:13 -04:00
|
|
|
|
{
|
2022-08-29 14:53:16 -04:00
|
|
|
|
throw new ArgumentNullException(nameof(selection));
|
2017-05-11 11:41:13 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
2022-08-29 14:53:16 -04:00
|
|
|
|
Id = selection.Id.ToString();
|
|
|
|
|
|
ReadOnly = selection.ReadOnly;
|
|
|
|
|
|
HidePasswords = selection.HidePasswords;
|
2017-05-11 11:41:13 -04:00
|
|
|
|
}
|
2022-08-29 14:53:16 -04:00
|
|
|
|
|
|
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
|
public bool ReadOnly { get; set; }
|
|
|
|
|
|
public bool HidePasswords { get; set; }
|
2017-05-11 11:41:13 -04:00
|
|
|
|
}
|