C# Class rosette_api.RosetteResponse

Afficher le fichier Open project: rosette-api/csharp Class Usage Examples

Private Properties

Свойство Type Description
contentToString string
decompress byte[]
headersAsString string

Méthodes publiques

Méthode Description
ContentToString ( ) : string

Gets the content in JSON form

RosetteResponse ( HttpResponseMessage responseMsg ) : System

RosetteResponse ctor

RosetteResponse ( string>.IDictionary headers, object>.IDictionary content = null, string contentAsJson = null ) : System

Creates a Rosette Response from its components

ToString ( ) : string

ToString override.

Private Methods

Méthode Description
contentToString ( HttpContent httpContent ) : string

Reads the httpContent value into a string

decompress ( byte gzip ) : byte[]

Decompress

Method to decompress GZIP files Source: http://www.dotnetperls.com/decompress

headersAsString ( ) : string

Method Details

ContentToString() public méthode

Gets the content in JSON form
public ContentToString ( ) : string
Résultat string

RosetteResponse() public méthode

RosetteResponse ctor
public RosetteResponse ( HttpResponseMessage responseMsg ) : System
responseMsg System.Net.Http.HttpResponseMessage HttpResponseMessage
Résultat System

RosetteResponse() public méthode

Creates a Rosette Response from its components
public RosetteResponse ( string>.IDictionary headers, object>.IDictionary content = null, string contentAsJson = null ) : System
headers string>.IDictionary The headers from the API
content object>.IDictionary The content of the response in dictionary form
contentAsJson string The content of the response in JSON
Résultat System

ToString() public méthode

ToString override.
public ToString ( ) : string
Résultat string