mirror of
https://github.com/bitwarden/server.git
synced 2025-04-19 20:18:14 -05:00
23 lines
534 B
C#
23 lines
534 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;
|
|
}
|
|
|
|
public string Id { get; set; }
|
|
public bool ReadOnly { get; set; }
|
|
}
|
|
}
|