Adding regions to BotBaseBuilder
This commit is contained in:
parent
09d7164385
commit
d5a89a4ed8
@ -34,7 +34,7 @@ namespace TelegramBotBase.Builder
|
|||||||
return new BotBaseBuilder();
|
return new BotBaseBuilder();
|
||||||
}
|
}
|
||||||
|
|
||||||
#region "Step 1"
|
#region "Step 1 (Basic Stuff)"
|
||||||
|
|
||||||
public IMessageLoopSelectionStage WithAPIKey(string apiKey)
|
public IMessageLoopSelectionStage WithAPIKey(string apiKey)
|
||||||
{
|
{
|
||||||
@ -45,7 +45,7 @@ namespace TelegramBotBase.Builder
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region "Step 2"
|
#region "Step 2 (Message Loop)"
|
||||||
|
|
||||||
public IStartFormSelectionStage DefaultMessageLoop()
|
public IStartFormSelectionStage DefaultMessageLoop()
|
||||||
{
|
{
|
||||||
@ -71,7 +71,7 @@ namespace TelegramBotBase.Builder
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region "Step 3"
|
#region "Step 3 (Start Form/Factory)"
|
||||||
|
|
||||||
public INetworkingSelectionStage WithStartForm(Type startFormClass)
|
public INetworkingSelectionStage WithStartForm(Type startFormClass)
|
||||||
{
|
{
|
||||||
@ -94,6 +94,7 @@ namespace TelegramBotBase.Builder
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region "Step 4 (Network Settings)"
|
||||||
|
|
||||||
public IBotCommandsStage WithProxy(string proxyAddress)
|
public IBotCommandsStage WithProxy(string proxyAddress)
|
||||||
{
|
{
|
||||||
@ -134,6 +135,11 @@ namespace TelegramBotBase.Builder
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region "Step 5 (Bot Commands)"
|
||||||
|
|
||||||
public ISessionSerializationStage NoCommands()
|
public ISessionSerializationStage NoCommands()
|
||||||
{
|
{
|
||||||
return this;
|
return this;
|
||||||
@ -153,6 +159,9 @@ namespace TelegramBotBase.Builder
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region "Step 6 (Serialization)"
|
||||||
|
|
||||||
public ILanguageSelectionStage NoSerialization()
|
public ILanguageSelectionStage NoSerialization()
|
||||||
{
|
{
|
||||||
@ -184,6 +193,10 @@ namespace TelegramBotBase.Builder
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region "Step 7 (Language)"
|
||||||
|
|
||||||
public IBuildingStage DefaultLanguage()
|
public IBuildingStage DefaultLanguage()
|
||||||
{
|
{
|
||||||
return this;
|
return this;
|
||||||
@ -207,6 +220,8 @@ namespace TelegramBotBase.Builder
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
public BotBase Build()
|
public BotBase Build()
|
||||||
{
|
{
|
||||||
var bb = new BotBase();
|
var bb = new BotBase();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user