DotsiderResponse
Namespace: Dotsider.Core.Protocol
Assembly: Dotsider.Core.dll
JSON response from a dotsider diagnostics socket.
public sealed class DotsiderResponseInheritance
Section titled “Inheritance”Object → DotsiderResponse
Properties
Section titled “Properties”Response payload, serialized as the appropriate type.
Returns: Object
public object? Data { get; set; }Error message if the request failed.
Returns: String
public string? Error { get; set; }Success
Section titled “Success”Whether the request succeeded.
Returns: Boolean
public bool Success { get; set; }Methods
Section titled “Methods”Fail(string)
Section titled “Fail(string)”Creates an error response with the given message.
Parameters:
error(String):
Returns: DotsiderResponse
public static DotsiderResponse Fail(string error)Ok(object?)
Section titled “Ok(object?)”Creates a successful response with the given data.
Parameters:
data(Object):
Returns: DotsiderResponse
public static DotsiderResponse Ok(object? data = null)