Table of Contents

Class OperationResult

Namespace
MoonBark.GridPlacement.Core.Types
Assembly
MoonBark.GridPlacement.Core.dll
public class OperationResult
Inheritance
OperationResult
Derived
Inherited Members

Constructors

OperationResult(bool, string, string)

protected OperationResult(bool isSuccess, string errorMessage = "", string errorCode = "")

Parameters

isSuccess bool
errorMessage string
errorCode string

Properties

ErrorCode

public string ErrorCode { get; }

Property Value

string

ErrorMessage

public string ErrorMessage { get; }

Property Value

string

IsSuccess

public bool IsSuccess { get; }

Property Value

bool

Methods

Failure(string, string)

public static OperationResult Failure(string message, string errorCode = "")

Parameters

message string
errorCode string

Returns

OperationResult

Success()

public static OperationResult Success()

Returns

OperationResult