C# Класс Rest4Net.Command

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Execute ( ) : CommandResult
WithBody ( string body ) : Command
WithContitionParameter ( bool condition, string key, string value ) : Command
WithHeader ( string key, string value ) : Command
WithOption ( string key, string value ) : Command
WithParameter ( string>.IEnumerable parameters ) : Command
WithParameter ( object parameters ) : Command
WithParameter ( string key, int value ) : Command
WithParameter ( string key, string value ) : Command
WithParameter ( string key, uint value ) : Command
WithParameterIfGreaterThanZero ( string key, int value ) : Command
WithParameterIfNotNull ( string key, string value ) : Command

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

Метод Описание
Command ( RequestType type, string path, RestApiProvider executor ) : System
Create ( string path, RequestType type, RestApiProvider executor ) : Command
GetFields ( Type type ) : IEnumerable
GetParametersFromObject ( object parameters ) : string>>.IEnumerable
GetProperties ( Type type ) : IEnumerable
WithSomething ( string>.ICollection list, string key, string value ) : Command

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

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

public Execute ( ) : CommandResult
Результат CommandResult

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

public WithBody ( string body ) : Command
body string
Результат Command

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

public WithContitionParameter ( bool condition, string key, string value ) : Command
condition bool
key string
value string
Результат Command

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

public WithHeader ( string key, string value ) : Command
key string
value string
Результат Command

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

public WithOption ( string key, string value ) : Command
key string
value string
Результат Command

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

public WithParameter ( string>.IEnumerable parameters ) : Command
parameters string>.IEnumerable
Результат Command

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

public WithParameter ( object parameters ) : Command
parameters object
Результат Command

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

public WithParameter ( string key, int value ) : Command
key string
value int
Результат Command

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

public WithParameter ( string key, string value ) : Command
key string
value string
Результат Command

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

public WithParameter ( string key, uint value ) : Command
key string
value uint
Результат Command

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

public WithParameterIfGreaterThanZero ( string key, int value ) : Command
key string
value int
Результат Command

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

public WithParameterIfNotNull ( string key, string value ) : Command
key string
value string
Результат Command