2017-05-11 11:41:13 -04:00
|
|
|
|
using System;
|
|
|
|
|
|
using Bit.Core.Models.Data;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Models.Api
|
|
|
|
|
|
{
|
2018-10-18 08:38:22 -04:00
|
|
|
|
public class SelectionReadOnlyResponseModel
|
2017-05-11 11:41:13 -04:00
|
|
|
|
{
|
|
|
|
|
|
public SelectionReadOnlyResponseModel(SelectionReadOnly selection)
|
|
|
|
|
|
{
|
2020-03-27 14:36:37 -04:00
|
|
|
|
if (selection == null)
|
2017-05-11 11:41:13 -04:00
|
|
|
|
{
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
}
|