mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.3 KiB
45 lines
1.3 KiB
// ==========================================================================
|
|
// 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
|
|
{
|
|
/// <summary>
|
|
/// The iso code of the language.
|
|
/// </summary>
|
|
[Required]
|
|
public string Iso2Code { get; set; }
|
|
|
|
/// <summary>
|
|
/// The english name of the language.
|
|
/// </summary>
|
|
[Required]
|
|
public string EnglishName { get; set; }
|
|
|
|
/// <summary>
|
|
/// The fallback languages.
|
|
/// </summary>
|
|
[Required]
|
|
public List<Language> Fallback { get; set; }
|
|
|
|
/// <summary>
|
|
/// Indicates if the language is the master language.
|
|
/// </summary>
|
|
public bool IsMaster { get; set; }
|
|
|
|
/// <summary>
|
|
/// Indicates if the language is optional.
|
|
/// </summary>
|
|
public bool IsOptional { get; set; }
|
|
}
|
|
}
|
|
|