public ApiResponse(int statusCode, string message = "", object result = null, ApiError apiError = null, string apiVersion = "0.2.0") { this.StatusCode = statusCode; this.Message = message; this.Result = result; this.ResponseException = apiError; this.Version = apiVersion; }
public ApiResponse(int statusCode, string message = "", object result = null, ApiError apiError = null, string apiVersion = "") { StatusCode = statusCode; Message = message; Result = result; ResponseException = apiError; Version = string.IsNullOrWhiteSpace(apiVersion) ? Assembly.GetEntryAssembly().GetName().Version.ToString() : apiVersion; IsError = false; }
public ApiResponse(int statusCode, string message = "", object result = null, ApiError apiError = null, string apiVersion = "0.7.0") { StatusCode = statusCode; Message = message; Result = result; ResponseException = apiError; Version = apiVersion; IsError = false; }
public ApiResponse(int statusCode, ApiError apiError) { this.StatusCode = statusCode; this.ResponseException = apiError; this.IsError = true; }