Created
July 1, 2016 09:00
-
-
Save beachside-project/4c2c4121d3310ced55b05ae54d436706 to your computer and use it in GitHub Desktop.
SandwichOrder1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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