C# Class FluidDB.FluidConnector

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

Public Methods

Method 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

Method Description
ProcessURI ( METHOD m, string path, string>.Dictionary args ) : Uri

Method Details

Call() public method

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
return System.Net.HttpWebResponse

Call() public method

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
return System.Net.HttpWebResponse

GetJsonResultDictionary() public method

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
return object>.Dictionary

GetRawResult() public method

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
return string