C# Class FluidDB.FluidConnector

A base class defining the call methods for all the other FluidDB classes
Afficher le fichier Open project: ntoll/FluidDB.NET Class Usage Examples

Méthodes publiques

Méthode Description
Call ( METHOD m, string path, string>.Dictionary args, object>.Dictionary body ) : HttpWebResponse

Makes a call to FluidDB using JSON payload

Call ( METHOD m, string path, string>.Dictionary args, string contentType, string payload ) : HttpWebResponse

Make any call using a custom content type for payload

GetJsonResultDictionary ( HttpWebResponse response ) : object>.Dictionary

Given a response with a json payload, will return a dictionary representation of the json

GetRawResult ( HttpWebResponse response ) : string

Utility method: given a WebResponse object this method will return the "result" from FluidDB contained therein.

Private Methods

Méthode Description
ProcessURI ( METHOD m, string path, string>.Dictionary args ) : Uri

Method Details

Call() public méthode

Makes a call to FluidDB using JSON payload
public Call ( METHOD m, string path, string>.Dictionary args, object>.Dictionary body ) : HttpWebResponse
m METHOD
path string The path to call
args string>.Dictionary Any further arguments to append to the URI
body object>.Dictionary The body of the request
Résultat System.Net.HttpWebResponse

Call() public méthode

Make any call using a custom content type for payload
public Call ( METHOD m, string path, string>.Dictionary args, string contentType, string payload ) : HttpWebResponse
m METHOD
path string
args string>.Dictionary
contentType string
payload string
Résultat System.Net.HttpWebResponse

GetJsonResultDictionary() public méthode

Given a response with a json payload, will return a dictionary representation of the json
public GetJsonResultDictionary ( HttpWebResponse response ) : object>.Dictionary
response System.Net.HttpWebResponse The response from FluidDB
Résultat object>.Dictionary

GetRawResult() public méthode

Utility method: given a WebResponse object this method will return the "result" from FluidDB contained therein.
public GetRawResult ( HttpWebResponse response ) : string
response System.Net.HttpWebResponse The response from FluidDB
Résultat string