Click or drag to resize

JsonResponse Class

Encapsulates the response returned from a JsonClient server call.
Inheritance Hierarchy
SystemObject
  Neon.NetJsonResponse

Namespace:  Neon.Net
Assembly:  Neon.Common (in Neon.Common.dll) Version: 2.4.1
Syntax
public class JsonResponse

The JsonResponse type exposes the following members.

Constructors
  NameDescription
Public methodJsonResponse
Constructs a JsonResponse from a lower level HttpResponseMessage.
Top
Properties
  NameDescription
Public propertyHttpResponse
Returns the low-level HTTP response.
Public propertyIsSuccess
Returns true if the response status code indicates success.
Public propertyJsonText
Returns the response as JSON text or null if the server didn't respond with JSON.
Public propertyRequestUri
Returns the request URI.
Public propertyStatusCode
Returns the HTTP response status code.
Top
Methods
  NameDescription
Public methodAsTResult
Converts the response document to a specified type or null if the server didn't return JSON content.
Public methodAsDynamic
Returns the dynamic JSON response document, array, value or null if the server didn't return JSON content.
Public methodEnsureSuccess
Ensures that the status code indicates success by throwing an exception for any error related status codes.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also