- removing unecessary constructors from BotBase - removing generics from BotBase - removing generics from SessionBase - adding StartFormFactory interface - adding DefaultStartFormFactory - adding multiple methods to BotBaseBuilder
35 lines
1.0 KiB
C#
35 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using TelegramBotBase.Form;
|
|
using TelegramBotBase.Interfaces;
|
|
|
|
namespace TelegramBotBase.Builder.Interfaces
|
|
{
|
|
public interface IStartFormSelectionPage
|
|
{
|
|
|
|
/// <summary>
|
|
/// Chooses a start form type which will be used for new sessions.
|
|
/// </summary>
|
|
/// <typeparam name="T"></typeparam>
|
|
/// <returns></returns>
|
|
INetworkingSelectionStage WithStartForm(Type startFormClass);
|
|
|
|
/// <summary>
|
|
/// Chooses a generic start form which will be used for new sessions.
|
|
/// </summary>
|
|
/// <typeparam name="T"></typeparam>
|
|
/// <returns></returns>
|
|
INetworkingSelectionStage WithStartForm<T>() where T : FormBase, new();
|
|
|
|
/// <summary>
|
|
/// Chooses a StartFormFactory which will be use for new sessions.
|
|
/// </summary>
|
|
/// <param name="factory"></param>
|
|
/// <returns></returns>
|
|
INetworkingSelectionStage WithStartFormFactory(IStartFormFactory factory);
|
|
|
|
}
|
|
}
|