using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.Json.Serialization; using System.Threading.Tasks; namespace DG.Core { public class ApiResult : ApiResult, IApiResult { /// /// Initializes a new instance of the class. /// public ApiResult() { } /// /// Initializes a new instance of the class. /// /// The result. /// The status code. public ApiResult(TData data, int? code) { Code = code ?? 0; Data = data; } /// /// Gets or sets the result. /// /// The result. [JsonPropertyName("data")] public TData Data { get; set; } } }