Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public DescribeProductStep(long chatId, IBotClient client, string selectedCategory) :
            base(chatId, client)
        {
            Data.Category = selectedCategory;

            CallbackActions.Add("Back", BackAction);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
 }