Adding private constructor
- Adding private constructor - some spacing for regions
This commit is contained in:
parent
19856ab044
commit
8303b0c87f
@ -29,6 +29,11 @@ namespace TelegramBotBase.Builder
|
|||||||
|
|
||||||
IMessageLoopFactory _messageloopfactory = null;
|
IMessageLoopFactory _messageloopfactory = null;
|
||||||
|
|
||||||
|
private BotBaseBuilder()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public static IAPIKeySelectionStage Create()
|
public static IAPIKeySelectionStage Create()
|
||||||
{
|
{
|
||||||
return new BotBaseBuilder();
|
return new BotBaseBuilder();
|
||||||
@ -128,6 +133,7 @@ namespace TelegramBotBase.Builder
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region "Step 3 (Start Form/Factory)"
|
#region "Step 3 (Start Form/Factory)"
|
||||||
|
|
||||||
public INetworkingSelectionStage WithStartForm(Type startFormClass)
|
public INetworkingSelectionStage WithStartForm(Type startFormClass)
|
||||||
@ -151,6 +157,7 @@ namespace TelegramBotBase.Builder
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region "Step 4 (Network Settings)"
|
#region "Step 4 (Network Settings)"
|
||||||
|
|
||||||
public IBotCommandsStage WithProxy(string proxyAddress)
|
public IBotCommandsStage WithProxy(string proxyAddress)
|
||||||
@ -195,6 +202,7 @@ namespace TelegramBotBase.Builder
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region "Step 5 (Bot Commands)"
|
#region "Step 5 (Bot Commands)"
|
||||||
|
|
||||||
public ISessionSerializationStage NoCommands()
|
public ISessionSerializationStage NoCommands()
|
||||||
@ -226,6 +234,7 @@ namespace TelegramBotBase.Builder
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region "Step 6 (Serialization)"
|
#region "Step 6 (Serialization)"
|
||||||
|
|
||||||
public ILanguageSelectionStage NoSerialization()
|
public ILanguageSelectionStage NoSerialization()
|
||||||
@ -260,6 +269,7 @@ namespace TelegramBotBase.Builder
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region "Step 7 (Language)"
|
#region "Step 7 (Language)"
|
||||||
|
|
||||||
public IBuildingStage DefaultLanguage()
|
public IBuildingStage DefaultLanguage()
|
||||||
@ -287,6 +297,7 @@ namespace TelegramBotBase.Builder
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
public BotBase Build()
|
public BotBase Build()
|
||||||
{
|
{
|
||||||
var bb = new BotBase();
|
var bb = new BotBase();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user