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