Struct Response
The response sent via NetworkMessenger. This response can be set to be expected after sending a message using SendMessage(string, byte[], bool, int).
Implements
Inherited Members
Namespace: HoloMetrix.Net.Remote
Assembly: HoloMetrix.Net.Remote.dll
Syntax
public struct Response : IMessage
Constructors
| Improve this Doc View SourceResponse(string, ResponseStatus)
Initializes a new instance of the Response struct.
Declaration
public Response(string message, ResponseStatus status)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The response message. |
| ResponseStatus | status | The response status. |
Properties
| Improve this Doc View SourceEmpty
Gets an empty response with Unknown status.
Declaration
public static Response Empty { get; }
Property Value
| Type | Description |
|---|---|
| Response |
Message
Gets the message contents of the response.
Declaration
public object Message { get; }
Property Value
| Type | Description |
|---|---|
| object |
Status
Gets the response status.
Declaration
public ResponseStatus Status { get; }
Property Value
| Type | Description |
|---|---|
| ResponseStatus |
Methods
| Improve this Doc View SourceFromMessage(string)
Creates a response from a message string.
Declaration
public static Response FromMessage(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The original message. |
Returns
| Type | Description |
|---|---|
| Response | The message as a response. |