C# Class Rest4Net.Command

Afficher le fichier Open project: acropolium/Rest4Net Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Execute ( ) : CommandResult
Résultat CommandResult

WithBody() public méthode

public WithBody ( string body ) : Command
body string
Résultat Command

WithContitionParameter() public méthode

public WithContitionParameter ( bool condition, string key, string value ) : Command
condition bool
key string
value string
Résultat Command

WithHeader() public méthode

public WithHeader ( string key, string value ) : Command
key string
value string
Résultat Command

WithOption() public méthode

public WithOption ( string key, string value ) : Command
key string
value string
Résultat Command

WithParameter() public méthode

public WithParameter ( string>.IEnumerable parameters ) : Command
parameters string>.IEnumerable
Résultat Command

WithParameter() public méthode

public WithParameter ( object parameters ) : Command
parameters object
Résultat Command

WithParameter() public méthode

public WithParameter ( string key, int value ) : Command
key string
value int
Résultat Command

WithParameter() public méthode

public WithParameter ( string key, string value ) : Command
key string
value string
Résultat Command

WithParameter() public méthode

public WithParameter ( string key, uint value ) : Command
key string
value uint
Résultat Command

WithParameterIfGreaterThanZero() public méthode

public WithParameterIfGreaterThanZero ( string key, int value ) : Command
key string
value int
Résultat Command

WithParameterIfNotNull() public méthode

public WithParameterIfNotNull ( string key, string value ) : Command
key string
value string
Résultat Command