C# 클래스 rosette_api.RosetteResponse

파일 보기 프로젝트 열기: rosette-api/csharp 1 사용 예제들

Private Properties

프로퍼티 타입 설명
contentToString string
decompress byte[]
headersAsString string

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

ContentToString() 공개 메소드

Gets the content in JSON form
public ContentToString ( ) : string
리턴 string

RosetteResponse() 공개 메소드

RosetteResponse ctor
public RosetteResponse ( HttpResponseMessage responseMsg ) : System
responseMsg System.Net.Http.HttpResponseMessage HttpResponseMessage
리턴 System

RosetteResponse() 공개 메소드

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
리턴 System

ToString() 공개 메소드

ToString override.
public ToString ( ) : string
리턴 string