Skip to content

Commit

Permalink
perf: make commands sealed
Browse files Browse the repository at this point in the history
jirikostiha committed Nov 14, 2024
1 parent 610f9d0 commit 186da5a
Showing 24 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/SyncAPIConnector/commands/AllSymbolsCommand.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Xtb.XApi.Commands;

public class AllSymbolsCommand : BaseCommand
public sealed class AllSymbolsCommand : BaseCommand
{
public const string Name = "getAllSymbols";

2 changes: 1 addition & 1 deletion src/SyncAPIConnector/commands/CalendarCommand.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Xtb.XApi.Commands;

public class CalendarCommand : BaseCommand
public sealed class CalendarCommand : BaseCommand
{
public const string Name = "getCalendar";

2 changes: 1 addition & 1 deletion src/SyncAPIConnector/commands/ChartLastCommand.cs
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

namespace Xtb.XApi.Commands;

public class ChartLastCommand : BaseCommand
public sealed class ChartLastCommand : BaseCommand
{
public const string Name = "getChartLastRequest";

2 changes: 1 addition & 1 deletion src/SyncAPIConnector/commands/ChartRangeCommand.cs
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

namespace Xtb.XApi.Commands;

public class ChartRangeCommand : BaseCommand
public sealed class ChartRangeCommand : BaseCommand
{
public const string Name = "getChartRangeRequest";

2 changes: 1 addition & 1 deletion src/SyncAPIConnector/commands/CommissionDefCommand.cs
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

namespace Xtb.XApi.Commands;

public class CommissionDefCommand : BaseCommand
public sealed class CommissionDefCommand : BaseCommand
{
public const string Name = "getCommissionDef";

2 changes: 1 addition & 1 deletion src/SyncAPIConnector/commands/CurrentUserDataCommand.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Xtb.XApi.Commands;

public class CurrentUserDataCommand : BaseCommand
public sealed class CurrentUserDataCommand : BaseCommand
{
public const string Name = "getCurrentUserData";

2 changes: 1 addition & 1 deletion src/SyncAPIConnector/commands/LoginCommand.cs
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

namespace Xtb.XApi.Commands;

public class LoginCommand : BaseCommand
public sealed class LoginCommand : BaseCommand
{
public const string Name = "login";

2 changes: 1 addition & 1 deletion src/SyncAPIConnector/commands/LogoutCommand.cs
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

namespace Xtb.XApi.Commands;

public class LogoutCommand : BaseCommand
public sealed class LogoutCommand : BaseCommand
{
public const string Name = "logout";

2 changes: 1 addition & 1 deletion src/SyncAPIConnector/commands/MarginLevelCommand.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Xtb.XApi.Commands;

public class MarginLevelCommand : BaseCommand
public sealed class MarginLevelCommand : BaseCommand
{
public const string Name = "getMarginLevel";

2 changes: 1 addition & 1 deletion src/SyncAPIConnector/commands/MarginTradeCommand.cs
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

namespace Xtb.XApi.Commands;

public class MarginTradeCommand : BaseCommand
public sealed class MarginTradeCommand : BaseCommand
{
public const string Name = "getMarginTrade";

2 changes: 1 addition & 1 deletion src/SyncAPIConnector/commands/NewsCommand.cs
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

namespace Xtb.XApi.Commands;

public class NewsCommand : BaseCommand
public sealed class NewsCommand : BaseCommand
{
public const string Name = "getNews";

2 changes: 1 addition & 1 deletion src/SyncAPIConnector/commands/PingCommand.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Xtb.XApi.Commands;

public class PingCommand : BaseCommand
public sealed class PingCommand : BaseCommand
{
public const string Name = "ping";

2 changes: 1 addition & 1 deletion src/SyncAPIConnector/commands/ProfitCalculationCommand.cs
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

namespace Xtb.XApi.Commands;

public class ProfitCalculationCommand : BaseCommand
public sealed class ProfitCalculationCommand : BaseCommand
{
public const string Name = "getProfitCalculation";

2 changes: 1 addition & 1 deletion src/SyncAPIConnector/commands/ServerTimeCommand.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Xtb.XApi.Commands;

public class ServerTimeCommand : BaseCommand
public sealed class ServerTimeCommand : BaseCommand
{
public const string Name = "getServerTime";

2 changes: 1 addition & 1 deletion src/SyncAPIConnector/commands/StepRulesCommand.cs
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

namespace Xtb.XApi.Commands;

public class StepRulesCommand : BaseCommand
public sealed class StepRulesCommand : BaseCommand
{
public StepRulesCommand()
: base(new JsonObject(), false)
2 changes: 1 addition & 1 deletion src/SyncAPIConnector/commands/SymbolCommand.cs
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

namespace Xtb.XApi.Commands;

public class SymbolCommand : BaseCommand
public sealed class SymbolCommand : BaseCommand
{
public const string Name = "getSymbol";

2 changes: 1 addition & 1 deletion src/SyncAPIConnector/commands/TickPricesCommand.cs
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

namespace Xtb.XApi.Commands;

public class TickPricesCommand : BaseCommand
public sealed class TickPricesCommand : BaseCommand
{
public const string Name = "getTickPrices";

2 changes: 1 addition & 1 deletion src/SyncAPIConnector/commands/TradeRecordsCommand.cs
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

namespace Xtb.XApi.Commands;

public class TradeRecordsCommand : BaseCommand
public sealed class TradeRecordsCommand : BaseCommand
{
public const string Name = "getTradeRecords";

2 changes: 1 addition & 1 deletion src/SyncAPIConnector/commands/TradeTransactionCommand.cs
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

namespace Xtb.XApi.Commands;

public class TradeTransactionCommand : BaseCommand
public sealed class TradeTransactionCommand : BaseCommand
{
public const string Name = "tradeTransaction";

Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

namespace Xtb.XApi.Commands;

public class TradeTransactionStatusCommand : BaseCommand
public sealed class TradeTransactionStatusCommand : BaseCommand
{
public const string Name = "tradeTransactionStatus";

2 changes: 1 addition & 1 deletion src/SyncAPIConnector/commands/TradesCommand.cs
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

namespace Xtb.XApi.Commands;

public class TradesCommand : BaseCommand
public sealed class TradesCommand : BaseCommand
{
public const string Name = "getTrades";

2 changes: 1 addition & 1 deletion src/SyncAPIConnector/commands/TradesHistoryCommand.cs
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

namespace Xtb.XApi.Commands;

public class TradesHistoryCommand : BaseCommand
public sealed class TradesHistoryCommand : BaseCommand
{
public const string Name = "getTradesHistory";

2 changes: 1 addition & 1 deletion src/SyncAPIConnector/commands/TradingHoursCommand.cs
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

namespace Xtb.XApi.Commands;

public class TradingHoursCommand : BaseCommand
public sealed class TradingHoursCommand : BaseCommand
{
public const string Name = "getTradingHours";

2 changes: 1 addition & 1 deletion src/SyncAPIConnector/commands/VersionCommand.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Xtb.XApi.Commands;

public class VersionCommand : BaseCommand
public sealed class VersionCommand : BaseCommand
{
public const string Name = "getVersion";

0 comments on commit 186da5a

Please sign in to comment.