Interface ITypeReader
Interface for TypeRears used by TelegramModulesService to parse arguments from string
Namespace: TelegramModularFramework.Services.TypeReaders
Assembly: TelegramModularFramework.dll
Syntax
public interface ITypeReader
Properties
| Improve this Doc View SourceType
The type that the TypeReader reads
Declaration
Type Type { get; }
Property Value
Type | Description |
---|---|
Type |
Methods
| Improve this Doc View SourceReadTypeAsync(ModuleContext, String)
Must convert string to Type or return unsuccessful TypeReaderResult
Declaration
Task<TypeReaderResult> ReadTypeAsync(ModuleContext context, string input)
Parameters
Type | Name | Description |
---|---|---|
ModuleContext | context | Module context |
System.String | input | String input. Can be with spaces |
Returns
Type | Description |
---|---|
Task<TypeReaderResult> |