menu option
Defines a single menu option selected by digit only.
Used by action run menu
language wrappers and examples
It contains the following properties:
Property | Required/Optional | Default | Description |
---|---|---|---|
digit | required | The digit to be pressed for this option. Valid digits are 0123456789ABCD#*. | |
next page | required | A web page request object that defines the web page to be requested when the associated digit is pressed. Setting this to null signifies that the subsequent action in the action array should be executed when this option is selected. |
-
Examples:
-
Configure a menu option:
{ "digit" : "5", "next_page" : { "url" : "option_five_page" } }
-
-
MenuOption Class
Namespace: Aculab.Cloud.RestAPIWrapper
Assembly: Aculab.Cloud.RestAPIWrapper.dllA class representing a single option in a run menu action.
-
public class MenuOption { // Constructors public MenuOption(char digit, WebPageRequest nextPage); }
Examples:
-
Add a menu option to a run menu action:
var menuOptions = new List<MenuOption>(); menuOptions.Add(new MenuOption('5', new WebPageRequest("OptionFivePage.aspx"))); var runMenu = new RunMenu(menuOptions);
-
-
public class MenuOption { // Constructors public MenuOption(char digit, WebPageRequest nextPage); }
Examples:
-
Add a menu option to a run menu action:
var menuOptions = new List<MenuOption>(); menuOptions.Add(new MenuOption('5', new WebPageRequest("OptionFivePage.aspx"))); var runMenu = new RunMenu(menuOptions);
-
-
public class MenuOption { // Constructors public MenuOption(char digit, WebPageRequest nextPage); }
Examples:
-
Add a menu option to a run menu action:
var menuOptions = new List<MenuOption>(); menuOptions.Add(new MenuOption('5', new WebPageRequest("OptionFivePage.aspx"))); var runMenu = new RunMenu(menuOptions);
-
-
-
MenuOption Class
Namespace: Aculab.Cloud.RestAPIWrapper
Assembly: Aculab.Cloud.RestAPIWrapper.dllA class representing a single option in a run menu action.
-
Public Class MenuOption ' Constructors Public Sub New (digit As Char, nextPage As Webpagerequest) End Class
Examples:
-
Add a menu option to a run menu action:
Dim menuOptions = New List(Of MenuOption) menuOptions.Add(New MenuOption("5", New WebPageRequest("OptionFivePage.aspx"))) Dim runMenu = New RunMenu(menuOptions)
-
-
Public Class MenuOption ' Constructors Public Sub New (digit As Char, nextPage As Webpagerequest) End Class
Examples:
-
Add a menu option to a run menu action:
Dim menuOptions = New List(Of MenuOption) menuOptions.Add(New MenuOption("5", New WebPageRequest("OptionFivePage.aspx"))) Dim runMenu = New RunMenu(menuOptions)
-
-
-
class MenuOption extends JSONElement
Represents the Menu Option support class.
Class synopsis:
// Constructors: public MenuOption(char digit, WebPageRequest nextPage)
Examples:
-
Add a menu option to a run menu action:
MenuOption menuOpt = new MenuOption('5',new WebPageRequest("option_five_page")); List<MenuOption> menuOptions = new ArrayList<>(); menuOptions.add(menuOpt); RunMenu runMenuAction = new RunMenu(menuOptions);
-
-
class MenuOption
Represents the Menu Option support class.
Class synopsis:
# MenuOption object: MenuOption(digit, next_page)
Examples:
-
Add a menu option to a run menu action:
menu_options = [] menu_options.append(MenuOption('5',WebPage(url='option_five_page'))) run_menu_action = RunMenu(menu_options)
-
-
This functionality is provided by a function call on a RunMenu object.
Examples:
Add a menu option to a run menu action:
$run_menu = new \Aculab\TelephonyRestAPI\RunMenu(); $run_menu->addMenuOption("5", "option_five_page.php");