Click or drag to resize

ResponseMessage Class

[This is preliminary documentation and is subject to change.]

An Message implementation representing a JSON-RPC response.
Inheritance Hierarchy

Namespace:  JsonRpc.Messages
Assembly:  JsonRpc.Commons (in JsonRpc.Commons.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
Syntax
[JsonObjectAttribute(MemberSerialization.OptIn)]
public sealed class ResponseMessage : Message

The ResponseMessage type exposes the following members.

Constructors
  NameDescription
Public methodResponseMessage
Creates a new ResponseMessage instance.
Public methodResponseMessage(MessageId)
Creates a new ResponseMessage instance.
Public methodResponseMessage(MessageId, ResponseError)
Creates a new ResponseMessage instance that indicates error.
Public methodResponseMessage(MessageId, JToken)
Creates a new ResponseMessage instance that indicates success.
Public methodResponseMessage(MessageId, JToken, ResponseError)
Creates a new ResponseMessage instance.
Top
Properties
  NameDescription
Public propertyError
The error that occurred while processing the request.
Public propertyId
A unique ID assigned to the request/response session. The request creator is responsible for this value.
Public propertyResult
An object representing the result of processing the request.
Public propertyVersion
The version of the JSON-RPC specification in use.
(Inherited from Message.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(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.)
Public methodToString
Gets the JSON representation of the message.
(Inherited from Message.)
Public methodWriteJson
Writes the JSON RPC string into specified TextWriter.
(Inherited from Message.)
Top
See Also