right  Talk To Us!

sleep Action

Sleeps for a number of seconds. Use this action to pause the application flow.


The sleep properties are:

PropertyRequired/OptionalDefaultDescription
secondsrequiredAn integer. The number of seconds to sleep.
  • Examples:

    • Sleep for 10 seconds:

      "sleep" :
      {
          "seconds" : 10
      }
      
  • Sleep Class
    Namespace: Aculab.Cloud.RestAPIWrapper
    Assembly: Aculab.Cloud.RestAPIWrapper.dll

    An action to generate a pause in the application.

    • public class Sleep : TelephonyAction
      {
          // Constructors
          public Sleep(int seconds);
      }
      

      Examples:

      • Sleep for 10 seconds:

        List<TelephonyAction> actions = new List<TelephonyAction>();
        
        actions.Add(new Sleep(10));
        
    • public class Sleep : TelephonyAction
      {
          // Constructors
          public Sleep(int seconds);
      }
      

      Examples:

      • Sleep for 10 seconds:

        List<TelephonyAction> actions = new List<TelephonyAction>();
        
        actions.Add(new Sleep(10));
        
    • public class Sleep : TelephonyAction
      {
          // Constructors
          public Sleep(int seconds);
      }
      

      Examples:

      • Sleep for 10 seconds:

        List<TelephonyAction> actions = new List<TelephonyAction>();
        
        actions.Add(new Sleep(10));
        
  • Sleep Class
    Namespace: Aculab.Cloud.RestAPIWrapper
    Assembly: Aculab.Cloud.RestAPIWrapper.dll

    An action to generate a pause in the application.

    • Public Class Sleep
          Inherits TelephonyAction
      
          ' Constructors
          Public Sub New (seconds As Integer)
      End Class
      

      Examples:

      • Sleep for 10 seconds:

        Dim actions = New List(Of TelephonyAction)
        
        actions.Add(New Sleep(10))
        
    • Public Class Sleep
          Inherits TelephonyAction
      
          ' Constructors
          Public Sub New (seconds As Integer)
      End Class
      

      Examples:

      • Sleep for 10 seconds:

        Dim actions = New List(Of TelephonyAction)
        
        actions.Add(New Sleep(10))
        
  • class Sleep extends TelephonyAction

    Represents a sleep action.

    Class synopsis:

    // Constructors:
    public Sleep(int seconds)
    

    Examples:

    • Sleep for 10 seconds:

      List<TelephonyAction> actions = new ArrayList<TelephonyAction>();
      
      actions.add(new Sleep(10));
      
  • class Sleep : TelephonyAction

    Represents a sleep action.

    Class synopsis:

    # Sleep object:
    Sleep(seconds)
    

    Examples:

    • Sleep for 10 seconds:

      # Create a list of actions that will be passed to the TelephonyResponse constructor
      list_of_actions = []
      
      list_of_actions.append(Sleep(10))
      
  • The Sleep class

    Introduction

    Represents a sleep action.

    Class synopsis

    class Sleep extends ActionBase {
    
        /* methods */
        public __construct(int $seconds)
    }
    

    Examples:

    • Sleep for 10 seconds:

      $response->addAction(new Aculab\TelephonyRestAPI\Sleep(10));