1
0
mirror of https://github.com/bitwarden/server synced 2025-12-23 03:33:35 +00:00
Files
server/src/Api/Models/Request/SelectionReadOnlyRequestModel.cs
Justin Baur 231eb84e69 Turn On ImplicitUsings (#2079)
* Turn on ImplicitUsings

* Fix formatting

* Run linter
2022-06-29 19:46:41 -04:00

24 lines
587 B
C#

using System.ComponentModel.DataAnnotations;
using Bit.Core.Models.Data;
namespace Bit.Api.Models.Request
{
public class SelectionReadOnlyRequestModel
{
[Required]
public string Id { get; set; }
public bool ReadOnly { get; set; }
public bool HidePasswords { get; set; }
public SelectionReadOnly ToSelectionReadOnly()
{
return new SelectionReadOnly
{
Id = new Guid(Id),
ReadOnly = ReadOnly,
HidePasswords = HidePasswords,
};
}
}
}