startRecording() публичный Метод

Overload for StartRecording that allows a a StartRecording object to be passed directly.
public startRecording ( StartRecording startRecording ) : void
startRecording StartRecording A StartRecording object.
Результат void
Пример #1
0
        public void testNewStartRecordingObject()
        {
            StartRecording startRecording = new StartRecording();
            startRecording.format = AudioFormat.mp3;
            startRecording.method = Method.post;
            startRecording.url = "http://blah.com/recordings/1234.wav";
            startRecording.username = "******";
            startRecording.password = "******";

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

            Assert.AreEqual(this.startRecordingJson, TropoJSON.render(tropo));
        }
Пример #2
0
        public void testNewStartRecording()
        {
            Tropo tropo = new Tropo();
            tropo.startRecording(AudioFormat.mp3, Method.post, "http://blah.com/recordings/1234.wav", "jose", "password");

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