All Downloads are FREE. Search and download functionalities are using the official Maven repository.

csharp.ApiResponse.mustache Maven / Gradle / Ivy

There is a newer version: 3.0.0-rc1
Show newest version
{{>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;
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy