using System.Runtime.Serialization;
using Newtonsoft.Json.Converters;
namespace AMWD.Net.Api.Cloudflare.Zones
{
///
/// Apply options from the Polish feature of the Cloudflare Speed app.
///
public class Polish : ZoneSettingBase
{
///
/// Initializes a new instance of the class.
///
public Polish()
{
Id = ZoneSettingId.Polish;
}
///
/// The level of Polish you want applied to your origin.
///
[JsonProperty("value")]
public PolishLevel? Value { get; set; }
}
///
/// The level of Polish.
/// Source
///
[JsonConverter(typeof(StringEnumConverter))]
public enum PolishLevel
{
///
/// No Polish.
///
[EnumMember(Value = "off")]
Off = 1,
///
/// Basic Polish.
///
[EnumMember(Value = "lossless")]
LossLess = 2,
///
/// Full Polish.
///
[EnumMember(Value = "lossy")]
Lossy = 3
}
}