TransfersUriParameterBuilder

Summary

MembersDescriptions

WithAccount sets the account parameter

WithRecipient sets the recipient parameter

WithAssetId sets the assetId parameter

WithSender sets the sender parameter

public TransfersUriParameterBuilder WithCollectionName(string collectionName)

This function sets the schema name for the query.

It sets the value of the templateId variable.

public TransfersUriParameterBuilder WithCollectionBlacklist(string[] collectionBlacklist)

WithCollectionBlacklist is a function that takes an array of strings and returns an TransfersUriParameterBuilder object

public TransfersUriParameterBuilder WithCollectionWhitelist(string[] collectionWhitelist)

WithCollectionWhitelist is a function that takes an array of strings and returns an TransfersUriParameterBuilder object

WithPage sets the _page variable to the value of the page parameter

WithLimit sets the _limit variable to the value of the limit parameter

This function sets the sort strategy for the query.

It sets the sort parameter for the request.

public string Build()

It builds a query string based on the parameters that have been set.

private string _account

A private variable that is used to store the value of the account parameter.

private string _sender

A private variable that is used to store the value of the sender parameter.

private string _recipient

A private variable that is used to store the value of the recipient parameter.

private string _assetId

A private variable that is used to store the value of the assetId parameter.

private string _templateId

A private variable that is used to store the value of the templateId parameter.

private string _schemaName

A private variable that is used to store the value of the schemaName parameter.

private string _collectionName

A private variable that is used to store the value of the collectionName parameter.

private string _collectionBlacklist

A private variable that is used to store the value of the collectionBlacklist parameter.

private string _collectionWhitelist

A private variable that is used to store the value of the collectionWhitelist parameter.

private int? _page

A nullable integer specifying the page.

private int? _limit

A nullable integer specifying the limit of returned values.

A nullable enum specifying the sortStrategy.

private string _sort

A private variable that is used to store the value of the sort parameter.

Members

public TransfersUriParameterBuilder WithAccount(string account)

WithAccount sets the account parameter

Parameters

  • account Notified account.

Returns

The TransfersUriParameterBuilder object.

public TransfersUriParameterBuilder WithRecipient(string recipient)

WithRecipient sets the recipient parameter

Parameters

  • recipient Results base on transfer recipient.

Returns

The TransfersUriParameterBuilder object.

public TransfersUriParameterBuilder WithAssetId(string assetId)

WithAssetId sets the assetId parameter

Parameters

  • assetId The assetId parameter shows transfers based on a certain assetId.

Returns

The TransfersUriParameterBuilder object.

public TransfersUriParameterBuilder WithSender(string sender)

WithSender sets the sender parameter

Parameters

  • sender The sender parameter is used to filter the results. The sender parameter is a string that is matched against the account name.

Returns

The TransfersUriParameterBuilder object.

summary> WithCollectionName is a function that takes a string as a parameter and returns an TransfersUriParameterBuilder object

Parameters

  • collectionName The name of the collection you want to query.

Returns

The TransfersUriParameterBuilder object.

public TransfersUriParameterBuilder WithCollectionName(string collectionName)

public TransfersUriParameterBuilder WithSchemaName(string schemaName)

This function sets the schema name for the query.

Parameters

  • schemaName The name of the schema to use.

Returns

The TransfersUriParameterBuilder object.

public TransfersUriParameterBuilder WithTemplateId(string templateId)

It sets the value of the templateId variable.

Parameters

  • templateId Results based on only transfers which cointain assets of template.

Returns

The TranfersUriParameterBuilder object.

public TransfersUriParameterBuilder WithCollectionBlacklist(string[] collectionBlacklist)

WithCollectionBlacklist is a function that takes an array of strings and returns an TransfersUriParameterBuilder object

Parameters

  • collectionBlacklist A list of collections to exclude from the results.

Returns

The TransfersUriParameterBuilder object.

public TransfersUriParameterBuilder WithCollectionWhitelist(string[] collectionWhitelist)

WithCollectionWhitelist is a function that takes an array of strings and returns an TransfersUriParameterBuilder object

Parameters

  • collectionWhitelist A list of collections to include in the response.

Returns

The TransfersUriParameterBuilder object.

public TransfersUriParameterBuilder WithPage(int page)

WithPage sets the _page variable to the value of the page parameter

Parameters

  • page The page number of the results to return.

Returns

The TransfersUriParameterBuilder object.

public TransfersUriParameterBuilder WithLimit(int limit)

WithLimit sets the _limit variable to the value of the limit parameter

Parameters

  • limit The number of results to return.

Returns

The TranfersUriParameterBuilder object.

public TransfersUriParameterBuilder WithOrder( SortStrategy sorting)

This function sets the sort strategy for the query.

Parameters

  • SortStrategy

Returns

The builder object itself.

public TransfersUriParameterBuilder WithSort(string sort)

It sets the sort parameter for the request.

Parameters

  • sort The order in which to sort the results.

Returns

A TransfersUriParameterBuilder object.

public string Build()

It builds a query string based on the parameters that have been set.

Returns

A string that contains the parameters for the query.

private string _account

A private variable that is used to store the value of the account parameter.

private string _sender

A private variable that is used to store the value of the sender parameter.

private string _recipient

A private variable that is used to store the value of the recipient parameter.

private string _assetId

A private variable that is used to store the value of the assetId parameter.

private string _templateId

A private variable that is used to store the value of the templateId parameter.

private string _schemaName

A private variable that is used to store the value of the schemaName parameter.

private string _collectionName

A private variable that is used to store the value of the collectionName parameter.

private string _collectionBlacklist

A private variable that is used to store the value of the collectionBlacklist parameter.

private string _collectionWhitelist

A private variable that is used to store the value of the collectionWhitelist parameter.

private int? _page

A nullable integer specifying the page.

private int? _limit

A nullable integer specifying the limit of returned values.

private SortStrategy? _sortStrategy

A nullable enum specifying the sortStrategy.

private string _sort

A private variable that is used to store the value of the sort parameter.

Last updated