Show / Hide Table of Contents

Class RequestBuilder<T>

Abstract class for request builders.

Inheritance
System.Object
RequestBuilder<T>
FeeStatsRequestBuilder
FriendBotRequestBuilder
OrderBookRequestBuilder
RequestBuilderExecutePageable<T, TResponse>
Namespace: System.Dynamic.ExpandoObject
Assembly: stellar-dotnet-sdk.dll
Syntax
public class RequestBuilder<T> : object where T : class
Type Parameters
T

Constructors

RequestBuilder(Uri, String, HttpClient)

Declaration
public RequestBuilder(Uri serverUri, string defaultSegment, HttpClient httpClient)
Parameters
Type Name Description
Uri serverUri
System.String defaultSegment
HttpClient httpClient

Fields

UriBuilder

Declaration
protected UriBuilder UriBuilder
Field Value
UriBuilder

Properties

HttpClient

Declaration
public static HttpClient HttpClient { get; set; }
Property Value
HttpClient

Uri

Declaration
public string Uri { get; }
Property Value
System.String

Methods

BuildUri()

Declaration
public Uri BuildUri()
Returns
Uri

Cursor(String)

Sets

cursor
parameter on the request. A cursor is a value that points to a specific location in a collection of resources. The cursor attribute itself is an opaque value meaning that users should not try to parse it. Read https://www.stellar.org/developers/horizon/reference/resources/page.html for more information.

Declaration
public virtual T Cursor(string cursor)
Parameters
Type Name Description
System.String cursor
Returns
T

Execute<TZ>(Uri)

Declaration
public async Task<TZ> Execute<TZ>(Uri uri)
    where TZ : class
Parameters
Type Name Description
Uri uri
Returns
Task<TZ>

Type Parameters
TZ

Limit(Int32)

Sets

limit
parameter on the request. It defines maximum number of records to return. For range and default values check documentation of the endpoint requested.

Declaration
public virtual T Limit(int number)
Parameters
Type Name Description
System.Int32 number
Returns
T

Order(OrderDirection)

Sets order parameter on request.

Declaration
public virtual T Order(OrderDirection direction)
Parameters
Type Name Description
OrderDirection direction
Returns
T

SetSegments(String[])

Declaration
protected RequestBuilder<T> SetSegments(params string[] segments)
Parameters
Type Name Description
System.String[] segments
Returns
RequestBuilder<T>

Back to top Generated by DocFX