C# Класс Netsy.Helpers.EtsyUriBuilder

Class to build a Uri to the Etsy site
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ApiKey ( ) : EtsyUriBuilder

Append the Api key

Append ( IEnumerable values ) : EtsyUriBuilder

Append part of a url

Append ( string urlPart ) : EtsyUriBuilder

Append part of a url

DetailLevel ( DetailLevel detailLevel ) : EtsyUriBuilder

Append a detail level to the uri

Limit ( int limit ) : EtsyUriBuilder

Append an limit to the uri

Offset ( int offset ) : EtsyUriBuilder

Append an offset to the uri

OffsetLimit ( int offset, int limit ) : EtsyUriBuilder

Append an limit to the uri

OptionalParam ( string paramName, decimal paramValue ) : EtsyUriBuilder

Append a uri param to the uri, if the param has a value

OptionalParam ( string paramName, int paramValue ) : EtsyUriBuilder

Append a uri param to the uri, if the param has a value

Param ( string paramName, bool paramValue ) : EtsyUriBuilder

Append a uri param to the uri

Param ( string paramName, int paramValue ) : EtsyUriBuilder

Append a uri param to the uri

Param ( string paramName, string paramValue ) : EtsyUriBuilder

Append a uri param to the uri

Result ( ) : Uri

Generate the resulting Uri

Sort ( SortField sortField, SortOrder sortOrder ) : EtsyUriBuilder

Append a sort field and sort order to the uri

SortOrder ( SortOrder sortOrder ) : EtsyUriBuilder

Append a sort order to the uri

Start ( EtsyContext etsyContext ) : EtsyUriBuilder

Start the Uri with the base uri

Start ( EtsyContext etsyContext, string basePath ) : EtsyUriBuilder

Start the Uri with the base uri and a path under that

Start ( EtsyContext etsyContext, string basePath, EtsyColor color ) : EtsyUriBuilder

Start the Uri with the base uri and a path under that

Start ( EtsyContext etsyContext, string basePath, int id ) : EtsyUriBuilder

Start the Uri with the base uri and a path under that

Start ( EtsyContext etsyContext, string basePath, string id ) : EtsyUriBuilder

Start the Uri with the base uri and a path under that

ToString ( ) : string

Display for debug

Приватные методы

Метод Описание
EtsyUriBuilder ( EtsyContext etsyContext ) : System

Initializes a new instance of the etsyUriBuilder class

Описание методов

ApiKey() публичный Метод

Append the Api key
public ApiKey ( ) : EtsyUriBuilder
Результат EtsyUriBuilder

Append() публичный Метод

Append part of a url
public Append ( IEnumerable values ) : EtsyUriBuilder
values IEnumerable the values to append
Результат EtsyUriBuilder

Append() публичный Метод

Append part of a url
public Append ( string urlPart ) : EtsyUriBuilder
urlPart string the partial url text to append
Результат EtsyUriBuilder

DetailLevel() публичный Метод

Append a detail level to the uri
public DetailLevel ( DetailLevel detailLevel ) : EtsyUriBuilder
detailLevel DetailLevel the detail level
Результат EtsyUriBuilder

Limit() публичный Метод

Append an limit to the uri
public Limit ( int limit ) : EtsyUriBuilder
limit int the result set limit
Результат EtsyUriBuilder

Offset() публичный Метод

Append an offset to the uri
public Offset ( int offset ) : EtsyUriBuilder
offset int the result set offset
Результат EtsyUriBuilder

OffsetLimit() публичный Метод

Append an limit to the uri
public OffsetLimit ( int offset, int limit ) : EtsyUriBuilder
offset int the result set offset
limit int the results limit
Результат EtsyUriBuilder

OptionalParam() публичный Метод

Append a uri param to the uri, if the param has a value
public OptionalParam ( string paramName, decimal paramValue ) : EtsyUriBuilder
paramName string the param name
paramValue decimal the param value
Результат EtsyUriBuilder

OptionalParam() публичный Метод

Append a uri param to the uri, if the param has a value
public OptionalParam ( string paramName, int paramValue ) : EtsyUriBuilder
paramName string the param name
paramValue int the param value
Результат EtsyUriBuilder

Param() публичный Метод

Append a uri param to the uri
public Param ( string paramName, bool paramValue ) : EtsyUriBuilder
paramName string the param name
paramValue bool the param value
Результат EtsyUriBuilder

Param() публичный Метод

Append a uri param to the uri
public Param ( string paramName, int paramValue ) : EtsyUriBuilder
paramName string the param name
paramValue int the param value
Результат EtsyUriBuilder

Param() публичный Метод

Append a uri param to the uri
public Param ( string paramName, string paramValue ) : EtsyUriBuilder
paramName string the param name
paramValue string the param value
Результат EtsyUriBuilder

Result() публичный Метод

Generate the resulting Uri
public Result ( ) : Uri
Результат System.Uri

Sort() публичный Метод

Append a sort field and sort order to the uri
public Sort ( SortField sortField, SortOrder sortOrder ) : EtsyUriBuilder
sortField SortField the sort field
sortOrder SortOrder the sort order
Результат EtsyUriBuilder

SortOrder() публичный Метод

Append a sort order to the uri
public SortOrder ( SortOrder sortOrder ) : EtsyUriBuilder
sortOrder SortOrder the sort order
Результат EtsyUriBuilder

Start() публичный статический Метод

Start the Uri with the base uri
public static Start ( EtsyContext etsyContext ) : EtsyUriBuilder
etsyContext Netsy.DataModel.EtsyContext the etsy context
Результат EtsyUriBuilder

Start() публичный статический Метод

Start the Uri with the base uri and a path under that
public static Start ( EtsyContext etsyContext, string basePath ) : EtsyUriBuilder
etsyContext Netsy.DataModel.EtsyContext the etsy context
basePath string the path on the base uri
Результат EtsyUriBuilder

Start() публичный статический Метод

Start the Uri with the base uri and a path under that
public static Start ( EtsyContext etsyContext, string basePath, EtsyColor color ) : EtsyUriBuilder
etsyContext Netsy.DataModel.EtsyContext the etsy context
basePath string the path on the base uri
color Netsy.DataModel.EtsyColor the color to append
Результат EtsyUriBuilder

Start() публичный статический Метод

Start the Uri with the base uri and a path under that
public static Start ( EtsyContext etsyContext, string basePath, int id ) : EtsyUriBuilder
etsyContext Netsy.DataModel.EtsyContext the etsy context
basePath string the path on the base uri
id int the item id to append
Результат EtsyUriBuilder

Start() публичный статический Метод

Start the Uri with the base uri and a path under that
public static Start ( EtsyContext etsyContext, string basePath, string id ) : EtsyUriBuilder
etsyContext Netsy.DataModel.EtsyContext the etsy context
basePath string the path on the base uri
id string the item id to append
Результат EtsyUriBuilder

ToString() публичный Метод

Display for debug
public ToString ( ) : string
Результат string