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
boolIndicates if the operation succeeded.
errorMessage
stringRepresents the error message associated with a failure.
Properties
ErrorMessage
public string ErrorMessage { get; }
Property Value
IsFailed
public bool IsFailed { get; }
Property Value
IsSuccess
public bool IsSuccess { get; }
Property Value
Methods
Failure(string)
Creates a failure result for an operation with an error message.
public static ZendeskResult Failure(string errorMessage)
Parameters
errorMessage
stringThe 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.