Beispiel #1
0
        public InitialCatalogueStep(long chatId, IBotClient client) : base(chatId, client)
        {
            CallbackActions.Add("Back", BackAction);

            KeyboardMarkup = new KeyboardMarkup(KeyboardTools.GetCategoriesButtonRow(CommandName));
            NextStep       = new ShowCatalogueProductsStep(ChatId, BotClient);
        }
Beispiel #2
0
        public DescribeProductStep(long chatId, IBotClient client, string selectedCategory) :
            base(chatId, client)
        {
            Data.Category = selectedCategory;

            CallbackActions.Add("Back", BackAction);
        }
Beispiel #3
0
        public ReturnOrOrderStep(OrderData data, string categoryID, long chatId, IBotClient client) : base(chatId, client)
        {
            SelectedCategoryId = categoryID;
            Data = data;

            CallbackActions.Add("Back", BackAction);
            CallbackActions.Add("Order", OrderAction);
        }
Beispiel #4
0
 public FinishOrderStep(long chatId, IBotClient client, OrderData data) : base(chatId, client, data)
 {
     CallbackActions.Add("Confirmed", ConfirmedAction);
     CallbackActions.Add("Cancelled", CancelledAction);
 }
        public ShowCatalogueProductsStep(string categoryId, long chatId, IBotClient client) : base(chatId, client)
        {
            CallbackActions.Add("Back", BackAction);

            CategoryId = categoryId;
        }
 public ShowCatalogueProductsStep(long chatId, IBotClient client) : base(chatId, client)
 {
     CallbackActions.Add("Back", BackAction);
 }