Class GetFormResult
OptimaJet.Workflow.Plugins.FormsPlugin.GetFormResult
Represents the result of an attempt to retrieve a form.
Namespace: OptimaJet.Workflow.Plugins.FormsPlugin
public sealed class GetFormResult : OneOfBase<GetFormSuccess, SystemError>, IOneOfInheritance
- System.Object
- OptimaJet.Workflow.Core.Utils.OneOf.OneOfBase{OptimaJet.Workflow.Plugins.FormsPlugin.GetFormSuccess,OptimaJet.Workflow.Plugins.FormsPlugin.SystemError}
Implemented Interfaces
Properties
Name
Type
ResultType #ResultTypeThe result type, i.e., success, or error.
IsSuccess #BooleanTrue if the operation was successful.
IsSystemError #BooleanTrue if the operation failed due to an error.
AsSuccess #GetFormSuccessCasts the operation result as a success result.
AsSystemError #SystemErrorCasts the operation result as an error result.
Success #GetFormSuccessReturns the success result if it is successful; otherwise, returns null.
SystemError #SystemErrorReturns the error result if the operation is not successful; otherwise, returns null.
Methods
public static implicit operator GetFormResult(SystemError systemError) #Parameters
Name
Type
Description
systemErrorSystemErrorReturns
Type
Description
GetFormResultpublic static implicit operator GetFormResult(GetFormSuccess getFormSuccess) #Parameters
Name
Type
Description
getFormSuccessGetFormSuccessReturns
Type
Description
GetFormResultpublic static explicit operator GetFormSuccess(GetFormResult getFormResult) #Parameters
Name
Type
Description
getFormResultGetFormResultReturns
Type
Description
GetFormSuccesspublic static explicit operator SystemError(GetFormResult getFormResult) #Parameters
Name
Type
Description
getFormResultGetFormResultReturns
Type
Description
SystemError