Table of Contents

Class ZendeskResult

Represents a basic operation result, offering information about success or failure.

public class ZendeskResult
Inheritance
ZendeskResult
Derived
Inherited Members

Constructors

ZendeskResult(bool, string)

Initializes a new instance of the ZendeskResult class.

protected ZendeskResult(bool isSuccess, string errorMessage = "")

Parameters

isSuccess bool

Indicates if the operation succeeded.

errorMessage string

Represents the error message associated with a failure.

Properties

ErrorMessage

public string ErrorMessage { get; }

Property Value

string

IsFailed

public bool IsFailed { get; }

Property Value

bool

IsSuccess

public bool IsSuccess { get; }

Property Value

bool

Methods

Failure(string)

Creates a failure result for an operation with an error message.

public static ZendeskResult Failure(string errorMessage)

Parameters

errorMessage string

The message describing the failure reason.

Returns

ZendeskResult

A ZendeskResult indicating a failure with the accompanying message.

Success()

Creates a success result for an operation.

public static ZendeskResult Success()

Returns

ZendeskResult

A ZendeskResult indicating success.