Files
server/src/Api/Models/Request/SelectionReadOnlyRequestModel.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
601 B
C#
Raw Normal View History

using System;
using System.ComponentModel.DataAnnotations;
using Bit.Core.Models.Data;
2021-12-14 15:05:07 +00:00
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,
2020-05-22 22:16:01 +02:00
HidePasswords = HidePasswords,
};
}
}
}