// ==========================================================================
// AppLanguageDto.cs
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex Group
// All rights reserved.
// ==========================================================================
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Squidex.Infrastructure;
namespace Squidex.Areas.Api.Controllers.Apps.Models
{
public sealed class AppLanguageDto
{
///
/// The iso code of the language.
///
[Required]
public string Iso2Code { get; set; }
///
/// The english name of the language.
///
[Required]
public string EnglishName { get; set; }
///
/// The fallback languages.
///
[Required]
public List Fallback { get; set; }
///
/// Indicates if the language is the master language.
///
public bool IsMaster { get; set; }
///
/// Indicates if the language is optional.
///
public bool IsOptional { get; set; }
}
}