mirror of
https://github.com/bitwarden/server.git
synced 2026-02-05 00:23:24 +08:00
25 lines
554 B
C#
25 lines
554 B
C#
|
|
using System;
|
|||
|
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
using Newtonsoft.Json;
|
|||
|
|
using Bit.Core.Models.Table;
|
|||
|
|
using Bit.Core.Models.Data;
|
|||
|
|
|
|||
|
|
namespace Bit.Core.Models.Api
|
|||
|
|
{
|
|||
|
|
public class SelectionReadOnlyRequestModel
|
|||
|
|
{
|
|||
|
|
[Required]
|
|||
|
|
public string Id { get; set; }
|
|||
|
|
public bool ReadOnly { get; set; }
|
|||
|
|
|
|||
|
|
public SelectionReadOnly ToSelectionReadOnly()
|
|||
|
|
{
|
|||
|
|
return new SelectionReadOnly
|
|||
|
|
{
|
|||
|
|
Id = new Guid(Id),
|
|||
|
|
ReadOnly = ReadOnly
|
|||
|
|
};
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|