C# Class Rest4Net.Command

Show file Open project: acropolium/Rest4Net Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

Execute() public method

public Execute ( ) : CommandResult
return CommandResult

WithBody() public method

public WithBody ( string body ) : Command
body string
return Command

WithContitionParameter() public method

public WithContitionParameter ( bool condition, string key, string value ) : Command
condition bool
key string
value string
return Command

WithHeader() public method

public WithHeader ( string key, string value ) : Command
key string
value string
return Command

WithOption() public method

public WithOption ( string key, string value ) : Command
key string
value string
return Command

WithParameter() public method

public WithParameter ( string>.IEnumerable parameters ) : Command
parameters string>.IEnumerable
return Command

WithParameter() public method

public WithParameter ( object parameters ) : Command
parameters object
return Command

WithParameter() public method

public WithParameter ( string key, int value ) : Command
key string
value int
return Command

WithParameter() public method

public WithParameter ( string key, string value ) : Command
key string
value string
return Command

WithParameter() public method

public WithParameter ( string key, uint value ) : Command
key string
value uint
return Command

WithParameterIfGreaterThanZero() public method

public WithParameterIfGreaterThanZero ( string key, int value ) : Command
key string
value int
return Command

WithParameterIfNotNull() public method

public WithParameterIfNotNull ( string key, string value ) : Command
key string
value string
return Command