// ==========================================================================
// UpdateAppClientDto.cs
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex Group
// All rights reserved.
// ==========================================================================
using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Squidex.Domain.Apps.Core.Apps;
namespace Squidex.Areas.Api.Controllers.Apps.Models
{
public sealed class UpdateAppClientDto
{
///
/// The new display name of the client.
///
[StringLength(20)]
public string Name { get; set; }
///
/// The permissions of the client.
///
[JsonConverter(typeof(StringEnumConverter))]
public AppClientPermission? Permission { get; set; }
}
}