C# Class rosette_api.CategoriesResponse

Inheritance: RosetteResponse
Exibir arquivo Open project: rosette-api/csharp Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
CategoriesResponse ( HttpResponseMessage apiResult ) : System

Creates a CategoriesResponse from the API's raw output

CategoriesResponse ( List categories, string>.Dictionary responseHeaders, object>.Dictionary content = null, String contentAsJson = null ) : System

Constructs a Categories Response from a list of RosetteCategories, a collection of response headers, and content in a dictionary or content as JSON

Equals ( object obj ) : bool

Equals override

GetHashCode ( ) : int

Hashcode override

Method Details

CategoriesResponse() public method

Creates a CategoriesResponse from the API's raw output
public CategoriesResponse ( HttpResponseMessage apiResult ) : System
apiResult System.Net.Http.HttpResponseMessage The API's output
return System

CategoriesResponse() public method

Constructs a Categories Response from a list of RosetteCategories, a collection of response headers, and content in a dictionary or content as JSON
public CategoriesResponse ( List categories, string>.Dictionary responseHeaders, object>.Dictionary content = null, String contentAsJson = null ) : System
categories List The list of RosetteCategories
responseHeaders string>.Dictionary The response headers from the API
content object>.Dictionary The content of the response (i.e. the categories list)
contentAsJson String The content as a JSON string
return System

Equals() public method

Equals override
public Equals ( object obj ) : bool
obj object The object to compare
return bool

GetHashCode() public method

Hashcode override
public GetHashCode ( ) : int
return int