2022-06-29 19:46:41 -04:00
|
|
|
|
using Bit.Core.Models.Data;
|
2017-05-11 11:41:13 -04:00
|
|
|
|
|
2021-12-14 15:05:07 +00:00
|
|
|
|
namespace Bit.Api.Models.Response;
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2018-10-18 08:38:22 -04:00
|
|
|
|
public class SelectionReadOnlyResponseModel
|
2017-05-11 11:41:13 -04:00
|
|
|
|
{
|
2018-10-18 08:38:22 -04:00
|
|
|
|
public SelectionReadOnlyResponseModel(SelectionReadOnly selection)
|
2017-05-11 11:41:13 -04:00
|
|
|
|
{
|
|
|
|
|
|
if (selection == null)
|
|
|
|
|
|
{
|
|
|
|
|
|
throw new ArgumentNullException(nameof(selection));
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Id = selection.Id.ToString();
|
|
|
|
|
|
ReadOnly = selection.ReadOnly;
|
2020-05-21 15:36:47 +02:00
|
|
|
|
HidePasswords = selection.HidePasswords;
|
2017-05-11 11:41:13 -04:00
|
|
|
|
}
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2017-05-11 11:41:13 -04:00
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
|
public bool ReadOnly { get; set; }
|
2020-05-21 15:36:47 +02:00
|
|
|
|
public bool HidePasswords { get; set; }
|
2017-05-11 11:41:13 -04:00
|
|
|
|
}
|