fix: reformat using C# rules
This commit is contained in:
@@ -1,18 +1,19 @@
|
||||
namespace TelegramBotBase.Enums
|
||||
namespace TelegramBotBase.Enums;
|
||||
|
||||
public enum EDeleteMode
|
||||
{
|
||||
public enum EDeleteMode
|
||||
{
|
||||
/// <summary>
|
||||
/// Don't delete any message.
|
||||
/// </summary>
|
||||
None = 0,
|
||||
/// <summary>
|
||||
/// Delete messages on every callback/action.
|
||||
/// </summary>
|
||||
OnEveryCall = 1,
|
||||
/// <summary>
|
||||
/// Delete on leaving this form.
|
||||
/// </summary>
|
||||
OnLeavingForm = 2
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Don't delete any message.
|
||||
/// </summary>
|
||||
None = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Delete messages on every callback/action.
|
||||
/// </summary>
|
||||
OnEveryCall = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Delete on leaving this form.
|
||||
/// </summary>
|
||||
OnLeavingForm = 2
|
||||
}
|
||||
@@ -1,18 +1,19 @@
|
||||
namespace TelegramBotBase.Enums
|
||||
namespace TelegramBotBase.Enums;
|
||||
|
||||
public enum EDeleteSide
|
||||
{
|
||||
public enum EDeleteSide
|
||||
{
|
||||
/// <summary>
|
||||
/// Delete only messages from this bot.
|
||||
/// </summary>
|
||||
BotOnly = 0,
|
||||
/// <summary>
|
||||
/// Delete only user messages.
|
||||
/// </summary>
|
||||
UserOnly = 1,
|
||||
/// <summary>
|
||||
/// Delete all messages in this context.
|
||||
/// </summary>
|
||||
Both = 2
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Delete only messages from this bot.
|
||||
/// </summary>
|
||||
BotOnly = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Delete only user messages.
|
||||
/// </summary>
|
||||
UserOnly = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Delete all messages in this context.
|
||||
/// </summary>
|
||||
Both = 2
|
||||
}
|
||||
@@ -1,16 +1,14 @@
|
||||
namespace TelegramBotBase.Enums
|
||||
namespace TelegramBotBase.Enums;
|
||||
|
||||
public enum EKeyboardType
|
||||
{
|
||||
public enum EKeyboardType
|
||||
{
|
||||
/// <summary>
|
||||
/// Uses a ReplyKeyboardMarkup
|
||||
/// </summary>
|
||||
ReplyKeyboard = 0,
|
||||
/// <summary>
|
||||
/// Uses a ReplyKeyboardMarkup
|
||||
/// </summary>
|
||||
ReplyKeyboard = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Uses a InlineKeyboardMakup
|
||||
/// </summary>
|
||||
InlineKeyBoard = 1
|
||||
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Uses a InlineKeyboardMakup
|
||||
/// </summary>
|
||||
InlineKeyBoard = 1
|
||||
}
|
||||
@@ -1,18 +1,19 @@
|
||||
namespace TelegramBotBase.Enums
|
||||
namespace TelegramBotBase.Enums;
|
||||
|
||||
public enum EMonthPickerMode
|
||||
{
|
||||
public enum EMonthPickerMode
|
||||
{
|
||||
/// <summary>
|
||||
/// Shows the calendar with day picker mode
|
||||
/// </summary>
|
||||
day = 0,
|
||||
/// <summary>
|
||||
/// Shows the calendar with month overview
|
||||
/// </summary>
|
||||
month = 1,
|
||||
/// <summary>
|
||||
/// Shows the calendar with year overview
|
||||
/// </summary>
|
||||
year = 2
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Shows the calendar with day picker mode
|
||||
/// </summary>
|
||||
day = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Shows the calendar with month overview
|
||||
/// </summary>
|
||||
month = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Shows the calendar with year overview
|
||||
/// </summary>
|
||||
year = 2
|
||||
}
|
||||
@@ -1,21 +1,19 @@
|
||||
namespace TelegramBotBase.Enums
|
||||
namespace TelegramBotBase.Enums;
|
||||
|
||||
public enum ENavigationBarVisibility
|
||||
{
|
||||
public enum ENavigationBarVisibility
|
||||
{
|
||||
/// <summary>
|
||||
/// Shows it depending on the amount of items.
|
||||
/// </summary>
|
||||
auto = 0,
|
||||
/// <summary>
|
||||
/// Shows it depending on the amount of items.
|
||||
/// </summary>
|
||||
auto = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Will not show it at any time.
|
||||
/// </summary>
|
||||
never = 1,
|
||||
/// <summary>
|
||||
/// Will not show it at any time.
|
||||
/// </summary>
|
||||
never = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Will show it at any time.
|
||||
/// </summary>
|
||||
always = 2
|
||||
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Will show it at any time.
|
||||
/// </summary>
|
||||
always = 2
|
||||
}
|
||||
@@ -1,36 +1,34 @@
|
||||
namespace TelegramBotBase.Enums
|
||||
namespace TelegramBotBase.Enums;
|
||||
|
||||
public enum ESettings
|
||||
{
|
||||
public enum ESettings
|
||||
{
|
||||
/// <summary>
|
||||
/// How often could a form navigate to another (within one user action/call/message)
|
||||
/// </summary>
|
||||
NavigationMaximum = 1,
|
||||
/// <summary>
|
||||
/// How often could a form navigate to another (within one user action/call/message)
|
||||
/// </summary>
|
||||
NavigationMaximum = 1,
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Loggs all messages and sent them to the event handler
|
||||
/// </summary>
|
||||
LogAllMessages = 2,
|
||||
/// <summary>
|
||||
/// Loggs all messages and sent them to the event handler
|
||||
/// </summary>
|
||||
LogAllMessages = 2,
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Skips all messages during running (good for big delay updates)
|
||||
/// </summary>
|
||||
SkipAllMessages = 3,
|
||||
/// <summary>
|
||||
/// Skips all messages during running (good for big delay updates)
|
||||
/// </summary>
|
||||
SkipAllMessages = 3,
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Does stick to the console event handler and saves all sessions on exit.
|
||||
/// </summary>
|
||||
SaveSessionsOnConsoleExit = 4,
|
||||
/// <summary>
|
||||
/// Does stick to the console event handler and saves all sessions on exit.
|
||||
/// </summary>
|
||||
SaveSessionsOnConsoleExit = 4,
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Indicates the maximum number of times a request that received error
|
||||
/// 429 will be sent again after a timeout until it receives code 200 or an error code not equal to 429.
|
||||
/// </summary>
|
||||
MaxNumberOfRetries = 5,
|
||||
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Indicates the maximum number of times a request that received error
|
||||
/// 429 will be sent again after a timeout until it receives code 200 or an error code not equal to 429.
|
||||
/// </summary>
|
||||
MaxNumberOfRetries = 5
|
||||
}
|
||||
Reference in New Issue
Block a user