C# Class rosette_api.PingResponse

Inheritance: RosetteResponse
显示文件 Open project: rosette-api/csharp Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Equals ( Object obj ) : bool

Equals override

GetHashCode ( ) : int

HashCode override

PingResponse ( HttpResponseMessage apiMsg ) : System

Creates a PingResposne from the given apiMsg

PingResponse ( String message, long time, string>.Dictionary headers, object>.Dictionary content = null, String contentAsJson = null ) : System

Creates a PingResponse from its components

Method Details

Equals() public method

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

GetHashCode() public method

HashCode override
public GetHashCode ( ) : int
return int

PingResponse() public method

Creates a PingResposne from the given apiMsg
public PingResponse ( HttpResponseMessage apiMsg ) : System
apiMsg System.Net.Http.HttpResponseMessage The message from the API
return System

PingResponse() public method

Creates a PingResponse from its components
public PingResponse ( String message, long time, string>.Dictionary headers, object>.Dictionary content = null, String contentAsJson = null ) : System
message String The message
time long The time of the response
headers string>.Dictionary The headers returned by the API
content object>.Dictionary The content in dictionary form
contentAsJson String The content in JSON compatible string form
return System