Show / Hide Table of Contents

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
IMessage
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
Namespace: HoloMetrix.Net.Remote
Assembly: HoloMetrix.Net.Remote.dll
Syntax
public struct Response : IMessage

Constructors

| Improve this Doc View Source

Response(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 Source

Empty

Gets an empty response with Unknown status.

Declaration
public static Response Empty { get; }
Property Value
Type Description
Response
| Improve this Doc View Source

Message

Gets the message contents of the response.

Declaration
public object Message { get; }
Property Value
Type Description
object
| Improve this Doc View Source

Status

Gets the response status.

Declaration
public ResponseStatus Status { get; }
Property Value
Type Description
ResponseStatus

Methods

| Improve this Doc View Source

FromMessage(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.

Implements

IMessage
  • Improve this Doc
  • View Source
Back to top Generated by DocFX