Пример #1
0
        /// <summary>
        /// Simultaniously dial multiple phone numbers. The first of these calls to answer will be connected to the current caller, while the rest of the connection attempts are canceled.
        /// </summary>
        /// <param name="numbers">An array of phone numbers to dial</param>
        /// <returns></returns>
        public TwilioResponse DialNumbers(params string[] numbers)
		{
			BeginDial();
			var dial = new Dial();
			foreach (var number in numbers)
			{
				Add(new Number(number));
			}
			return EndDial();
		}
Пример #2
0
 public TwilioResponse DialClients(params string[] clients)
 {
     BeginDial();
     var dial = new Dial();
     foreach (var client in clients)
     {
         Add(new Client(client));
     }
     return EndDial();
 }