Show / Hide Table of Contents

    Class CommonApi

    Represents a collection of functions to interact with the API endpoints

    Inheritance
    System.Object
    CommonApi
    Implements
    ICommonApi
    IApiAccessor
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Algorand.V2.Indexer
    Assembly: Algorand.dll
    Syntax
    public class CommonApi : ICommonApi, IApiAccessor

    Constructors

    | Improve this Doc View Source

    CommonApi()

    Initializes a new instance of the CommonApi class

    Declaration
    public CommonApi()
    | Improve this Doc View Source

    CommonApi(Configuration)

    Initializes a new instance of the CommonApi class using Configuration object

    Declaration
    public CommonApi(Configuration configuration = null)
    Parameters
    Type Name Description
    Configuration configuration

    An instance of Configuration

    | Improve this Doc View Source

    CommonApi(String)

    Initializes a new instance of the CommonApi class.

    Declaration
    public CommonApi(string basePath)
    Parameters
    Type Name Description
    System.String basePath

    Properties

    | Improve this Doc View Source

    Configuration

    Gets or sets the configuration object

    Declaration
    public Configuration Configuration { get; set; }
    Property Value
    Type Description
    Configuration

    An instance of the Configuration

    | Improve this Doc View Source

    ExceptionFactory

    Provides a factory method hook for the creation of exceptions.

    Declaration
    public ExceptionFactory ExceptionFactory { get; set; }
    Property Value
    Type Description
    ExceptionFactory

    Methods

    | Improve this Doc View Source

    AddDefaultHeader(String, String)

    Add default header.

    Declaration
    [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")]
    public void AddDefaultHeader(string key, string value)
    Parameters
    Type Name Description
    System.String key

    Header field name.

    System.String value

    Header field value.

    | Improve this Doc View Source

    DefaultHeader()

    Gets the default header.

    Declaration
    [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")]
    public IDictionary<string, string> DefaultHeader()
    Returns
    Type Description
    System.Collections.Generic.IDictionary<System.String, System.String>

    Dictionary of HTTP header

    | Improve this Doc View Source

    GetBasePath()

    Gets the base path of the API client.

    Declaration
    public string GetBasePath()
    Returns
    Type Description
    System.String

    The base path

    | Improve this Doc View Source

    MakeHealthCheck()

    Returns 200 if healthy.

    Declaration
    public HealthCheck MakeHealthCheck()
    Returns
    Type Description
    HealthCheck

    HealthCheck

    Exceptions
    Type Condition
    ApiException

    Thrown when fails to make API call

    | Improve this Doc View Source

    MakeHealthCheckAsync()

    Returns 200 if healthy.

    Declaration
    public Task<HealthCheck> MakeHealthCheckAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task<HealthCheck>

    Task of HealthCheck

    Exceptions
    Type Condition
    ApiException

    Thrown when fails to make API call

    | Improve this Doc View Source

    MakeHealthCheckAsyncWithHttpInfo()

    Returns 200 if healthy.

    Declaration
    public Task<ApiResponse<HealthCheck>> MakeHealthCheckAsyncWithHttpInfo()
    Returns
    Type Description
    System.Threading.Tasks.Task<ApiResponse<HealthCheck>>

    Task of ApiResponse (HealthCheck)

    Exceptions
    Type Condition
    ApiException

    Thrown when fails to make API call

    | Improve this Doc View Source

    MakeHealthCheckWithHttpInfo()

    Returns 200 if healthy.

    Declaration
    public ApiResponse<HealthCheck> MakeHealthCheckWithHttpInfo()
    Returns
    Type Description
    ApiResponse<HealthCheck>

    ApiResponse of HealthCheck

    Exceptions
    Type Condition
    ApiException

    Thrown when fails to make API call

    | Improve this Doc View Source

    SetBasePath(String)

    Sets the base path of the API client.

    Declaration
    [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")]
    public void SetBasePath(string basePath)
    Parameters
    Type Name Description
    System.String basePath

    Implements

    ICommonApi
    IApiAccessor
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX