using System.Collections.Generic; namespace AMWD.Net.Api.Cloudflare { /// /// The base Cloudflare response. /// public class CloudflareResponse { /// /// Information about the result of the request. /// [JsonProperty("result_info")] public PaginationInfo ResultInfo { get; set; } /// /// Whether the API call was successful. /// [JsonProperty("success")] public bool Success { get; set; } /// /// Errors returned by the API call. /// [JsonProperty("errors")] public IReadOnlyList Errors { get; set; } = []; /// /// Messages returned by the API call. /// [JsonProperty("messages")] public IReadOnlyList Messages { get; set; } = []; } /// /// The base Cloudflare response with a result. /// /// public class CloudflareResponse : CloudflareResponse { /// /// The result of the API call. /// [JsonProperty("result")] public T Result { get; set; } } }