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.
38 lines
1.2 KiB
38 lines
1.2 KiB
// ==========================================================================
|
|
// GeolocationPropertiesDto.cs
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex Group
|
|
// All rights reserved.
|
|
// ==========================================================================
|
|
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
using NJsonSchema.Annotations;
|
|
using Squidex.Domain.Apps.Core.Schemas;
|
|
using Squidex.Infrastructure.Reflection;
|
|
|
|
namespace Squidex.Controllers.Api.Schemas.Models.Fields
|
|
{
|
|
[JsonSchema("Geolocation")]
|
|
public sealed class GeolocationFieldPropertiesDto : FieldPropertiesDto
|
|
{
|
|
/// <summary>
|
|
/// The default value for the field value.
|
|
/// </summary>
|
|
public bool? DefaultValue { get; set; }
|
|
|
|
/// <summary>
|
|
/// The editor that is used to manage this field.
|
|
/// </summary>
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public GeolocationFieldEditor Editor { get; set; }
|
|
|
|
public override FieldProperties ToProperties()
|
|
{
|
|
var result = SimpleMapper.Map(this, new GeolocationFieldProperties());
|
|
|
|
return result;
|
|
}
|
|
}
|
|
}
|
|
|