示例#1
0
 /// <summary>
 /// Overload for Conference that allows a Conference object to be passed.
 /// </summary>
 /// <param name="conference">A Conference object.</param>
 public void Conference(Conference conference)
 {
     Conference(conference.Id, conference.Mute, conference.Name, conference.PlayTones, conference.Required, conference.Terminator);
 }
示例#2
0
        /// <summary>
        /// Overload for Conference that allows events to be set via allowSignals.
        /// </summary>
        /// <param name="id"></param>
        /// <param name="allowSignals">Allows for the assignment of an interruptable signal for this Tropo function</param>
        /// <param name="mute"></param>
        /// <param name="name"></param>
        /// <param name="playTones"></param>
        /// <param name="required"></param>
        /// <param name="terminator"></param>
        public void Conference(string id, Array allowSignals, bool? mute, string name, bool? playTones, bool? required, string terminator)
        {
            Conference conference = new Conference();
            conference.Id = id;
            conference.allowSignals = allowSignals;
            conference.Mute = mute;
            conference.Name = name;
            conference.PlayTones = playTones;
            conference.Required = required;
            conference.Terminator = terminator;

            Serialize(conference, "conference");
        }
示例#3
0
        /// <summary>
        /// This object allows multiple lines in separate sessions to be conferenced together so that the parties on each line can talk to each other simultaneously.
        /// This is a voice channel only feature. 
        /// </summary>
        /// <param name="id">This defines the id/name of the conference room to create.</param>
        /// <param name="mute">Adds the user to the conference room with their audio muted.</param>
        /// <param name="name">Identifies the return value of a Conference, so you know the context for the returned information.</param>
        /// <param name="playTones">This defines whether to send touch tone phone input to the conference or block the audio.</param>
        /// <param name="required">Determines whether Tropo should move on to the next action.</param>
        /// <param name="terminator">This is the touch-tone key (also known as "DTMF digit") used to exit the conference.</param>
        public void conference(string id, bool? mute, string name, bool? playTones, bool? required, string terminator)
        {
            Conference conference = new Conference();
            conference.id = id;
            conference.mute = mute;
            conference.name = name;
            conference.playTones = playTones;
            conference.required = required;
            conference.terminator = terminator;

            serialize(conference, "conference");
        }
示例#4
0
 /// <summary>
 /// Overload for Conference that allows a Conference object to be passed.
 /// </summary>
 /// <param name="conference">A Conference object.</param>
 public void conference(Conference conference)
 {
     this.conference(conference.id, conference.mute, conference.name, conference.playTones, conference.required, conference.terminator);
 }
        public void testConferenceFromObject()
        {
            Conference conference = new Conference();
            conference.id = "1234";
            conference.mute = false;
            conference.name = "foo";
            conference.playTones = false;
            conference.terminator = "#";

            Tropo tropo = new Tropo();
            tropo.conference(conference);

            Assert.AreEqual(this.conferenceJson, TropoJSON.render(tropo));
        }