1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-20 12:38:15 -05:00
bitwarden/src/Api/Models/Request/SelectionReadOnlyRequestModel.cs
2021-12-14 16:05:07 +01:00

25 lines
601 B
C#

using System;
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,
};
}
}
}