Add "ZoneSettings" extensions
This commit is contained in:
23
Extensions/Cloudflare.Zones/Models/Settings/IPGeolocation.cs
Normal file
23
Extensions/Cloudflare.Zones/Models/Settings/IPGeolocation.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
namespace AMWD.Net.Api.Cloudflare.Zones
|
||||
{
|
||||
/// <summary>
|
||||
/// Cloudflare adds a CF-IPCountry HTTP header containing the country code that
|
||||
/// corresponds to the visitor.
|
||||
/// </summary>
|
||||
public class IPGeolocation : ZoneSettingBase
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="IPGeolocation"/> class.
|
||||
/// </summary>
|
||||
public IPGeolocation()
|
||||
{
|
||||
Id = ZoneSettingId.IPGeolocation;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The status of adding the IP Geolocation Header.
|
||||
/// </summary>
|
||||
[JsonProperty("value")]
|
||||
public OnOffState? Value { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user