mirror of
https://github.com/bitwarden/server.git
synced 2025-04-30 17:22:20 -05:00
23 lines
560 B
C#
23 lines
560 B
C#
using Bit.Core.Models.Data;
|
|
|
|
namespace Bit.Api.Models.Response;
|
|
|
|
public class SelectionReadOnlyResponseModel
|
|
{
|
|
public SelectionReadOnlyResponseModel(SelectionReadOnly selection)
|
|
{
|
|
if (selection == null)
|
|
{
|
|
throw new ArgumentNullException(nameof(selection));
|
|
}
|
|
|
|
Id = selection.Id.ToString();
|
|
ReadOnly = selection.ReadOnly;
|
|
HidePasswords = selection.HidePasswords;
|
|
}
|
|
|
|
public string Id { get; set; }
|
|
public bool ReadOnly { get; set; }
|
|
public bool HidePasswords { get; set; }
|
|
}
|