Created
July 11, 2016 06:19
-
-
Save beachside-project/10b5475ebda80264f6bc3f880bced410 to your computer and use it in GitHub Desktop.
FormFlowV3.Dialogs.SandwichOrder
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 FormFlowV3.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