using System;
using Bit.Core.Models.Data;

namespace Bit.Api.Models.Public.Response
{
    public class AssociationWithPermissionsResponseModel : AssociationWithPermissionsBaseModel
    {
        public AssociationWithPermissionsResponseModel(SelectionReadOnly selection)
        {
            if (selection == null)
            {
                throw new ArgumentNullException(nameof(selection));
            }
            Id = selection.Id;
            ReadOnly = selection.ReadOnly;
        }
    }
}
