C# Класс FluidDB.FluidConnector

A base class defining the call methods for all the other FluidDB classes
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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.

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

Метод Описание
ProcessURI ( METHOD m, string path, string>.Dictionary args ) : Uri

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

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

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
Результат System.Net.HttpWebResponse

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

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
Результат System.Net.HttpWebResponse

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

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
Результат object>.Dictionary

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

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
Результат string