By using the Aculab site, you agree with our use of cookies.

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:

PropertyRequired/OptionalDefaultDescription
digitrequiredThe digit to be pressed for this option. Valid digits are 0123456789ABCD#*.
next pagerequiredA 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:


  • MenuOption Class
    Namespace: Aculab.Cloud.RestAPIWrapper
    Assembly: Aculab.Cloud.RestAPIWrapper.dll

    A 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);
      
  • MenuOption Class
    Namespace: Aculab.Cloud.RestAPIWrapper
    Assembly: Aculab.Cloud.RestAPIWrapper.dll

    A 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)
      
  • class MenuOption extends JSONElement

    Represents the Menu Option support class.

    Class synopsis:

    // Constructors:
    public MenuOption(char digit, WebPageRequest nextPage)
    

    Examples:

  • class MenuOption

    Represents the Menu Option support class.

    Class synopsis:

    # MenuOption object:
    MenuOption(digit, next_page)
    

    Examples:


  • 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");