1
0
mirror of https://github.com/bitwarden/server synced 2026-01-13 14:03:58 +00:00
Files
server/src/Core/Models/Api/Public/AssociationWithPermissionsBaseModel.cs
2019-03-05 23:24:14 -05:00

22 lines
641 B
C#

using System;
using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;
namespace Bit.Core.Models.Api.Public
{
public abstract class AssociationWithPermissionsBaseModel
{
/// <summary>
/// The associated object's unique identifier.
/// </summary>
/// <example>bfbc8338-e329-4dc0-b0c9-317c2ebf1a09</example>
[Required]
public Guid? Id { get; set; }
/// <summary>
/// When true, the read only permission will not allow the user or group to make changes to items.
/// </summary>
[Required]
public bool? ReadOnly { get; set; }
}
}