Skip to content

Instantly share code, notes, and snippets.

@beachside-project
Created July 1, 2016 09:00
Show Gist options
  • Save beachside-project/4c2c4121d3310ced55b05ae54d436706 to your computer and use it in GitHub Desktop.
Save beachside-project/4c2c4121d3310ced55b05ae54d436706 to your computer and use it in GitHub Desktop.
SandwichOrder1
using System;
using System.Collections.Generic;
using Microsoft.Bot.Builder.FormFlow;
namespace FormFlow1.Dialogs
{
[Serializable]
public class SandwichOrder
{
public SandwichOptions? Sandwich;
public LengthOptions? Length;
public BreadOptions? Bread;
public CheeseOptions? Cheese;
public List<ToppingOptions> Toppings;
public List<SauceOptions> Sauce;
public static IForm<SandwichOrder> BuildForm()
{
return new FormBuilder<SandwichOrder>()
.Message("サンドイッチボットへようこそ♪")
.Build();
}
}
#region enum
public enum SandwichOptions
{
BLT,
BlackForestHam,
BuffaloChicken,
ChickenAndBaconRanchMelt,
ColdCutCombo,
MeatballMarinara,
OvenRoastedChicken,
RoastBeef,
RotisserieStyleChicken,
SpicyItalian,
SteakAndCheese,
SweetOnionTeriyaki,
Tuna,
TurkeyBreast,
Veggie
}
public enum LengthOptions { SixInch, FootLong }
public enum BreadOptions { NineGrainWheat, NineGrainHoneyOat, Italian, ItalianHerbsAndCheese, Flatbread }
public enum CheeseOptions { American, MontereyCheddar, Pepperjack }
public enum ToppingOptions
{
Avocado,
BananaPeppers,
Cucumbers,
GreenBellPeppers,
Jalapenos,
Lettuce,
Olives,
Pickles,
RedOnion,
Spinach,
Tomatoes
}
public enum SauceOptions
{
ChipotleSouthwest,
HoneyMustard,
LightMayonnaise,
RegularMayonnaise,
Mustard,
Oil,
Pepper,
Ranch,
SweetOnion,
Vinegar
}
#endregion
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment