Search Results for

    Show / Hide Table of Contents

    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 Source

    Type

    The type that the TypeReader reads

    Declaration
    Type Type { get; }
    Property Value
    Type Description
    Type

    Methods

    | Improve this Doc View Source

    ReadTypeAsync(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>

    FromSuccess(Object) or FromError(String)

    • Improve this Doc
    • View Source
    ☀
    ☾
    In This Article
    Back to top
    TelegramModularFramework (c) 2022-2022
    ☀
    ☾