csharp.ApiResponse.mustache Maven / Gradle / Ivy
{{>partial_header}}
using System;
using System.Collections.Generic;
namespace {{packageName}}.Client
{
///
/// API Response
///
{{>visibility}} class ApiResponse
{
///
/// Gets or sets the status code (HTTP status code)
///
/// The status code.
public int StatusCode { get; private set; }
///
/// Gets or sets the HTTP headers
///
/// HTTP headers
public IDictionary Headers { get; private set; }
///
/// Gets or sets the data (parsed HTTP body)
///
/// The data.
public T Data { get; private set; }
///
/// Initializes a new instance of the class.
///
/// HTTP status code.
/// HTTP headers.
/// Data (parsed HTTP body)
public ApiResponse(int statusCode, IDictionary headers, T data)
{
this.StatusCode= statusCode;
this.Headers = headers;
this.Data = data;
}
}
}