Class PreconditionResult
Inheritance
System.Object
PreconditionResult
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: TelegramModularFramework.Preconditions
Assembly: TelegramModularFramework.dll
Syntax
public class PreconditionResult
Properties
| Improve this Doc View SourceErrorReason
Declaration
public string ErrorReason { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Success
Declaration
public bool Success { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
| Improve this Doc View SourceFromError(String)
Declaration
public static PreconditionResult FromError(string errorReason)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | errorReason |
Returns
| Type | Description |
|---|---|
| PreconditionResult |
FromSuccess()
Declaration
public static PreconditionResult FromSuccess()
Returns
| Type | Description |
|---|---|
| PreconditionResult |