コード例 #1
0
 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;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 public ApiResponse(int statusCode, ApiError apiError)
 {
     this.StatusCode        = statusCode;
     this.ResponseException = apiError;
     this.IsError           = true;
 }