mirror of
https://github.com/bitwarden/server.git
synced 2025-04-24 14:26:38 -05:00
25 lines
636 B
C#
25 lines
636 B
C#
using System;
|
|
using Bit.Core.Models.Data;
|
|
|
|
namespace Bit.Core.Models.Api
|
|
{
|
|
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; }
|
|
}
|
|
}
|