mirror of
https://github.com/bitwarden/server.git
synced 2026-02-09 10:23:10 +08:00
* Swagger fixes Co-Authored-By: Oscar Hinton <Hinton@users.noreply.github.com> * Make Response Models return Guids instead of strings * Change strings into guids in ScimApplicationFactory --------- Co-authored-by: Oscar Hinton <Hinton@users.noreply.github.com>
23 lines
555 B
C#
23 lines
555 B
C#
using Bit.Core.Models.Data;
|
|
|
|
namespace Bit.Api.Models.Response;
|
|
|
|
public class SelectionReadOnlyResponseModel
|
|
{
|
|
public SelectionReadOnlyResponseModel(CollectionAccessSelection selection)
|
|
{
|
|
if (selection == null)
|
|
{
|
|
throw new ArgumentNullException(nameof(selection));
|
|
}
|
|
|
|
Id = selection.Id;
|
|
ReadOnly = selection.ReadOnly;
|
|
HidePasswords = selection.HidePasswords;
|
|
}
|
|
|
|
public Guid Id { get; set; }
|
|
public bool ReadOnly { get; set; }
|
|
public bool HidePasswords { get; set; }
|
|
}
|