本文整理匯總了C#中TropoCSharp.Tropo.Tropo.StartRecording方法的典型用法代碼示例。如果您正苦於以下問題:C# Tropo.StartRecording方法的具體用法?C# Tropo.StartRecording怎麽用?C# Tropo.StartRecording使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TropoCSharp.Tropo.Tropo
的用法示例。
在下文中一共展示了Tropo.StartRecording方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: testNewStartRecordingObject
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 = "jose";
startRecording.Password = "password";
Tropo tropo = new Tropo();
tropo.StartRecording(startRecording);
Assert.AreEqual(this.startRecordingJson, tropo.RenderJSON());
}
示例2: testNewStartRecording
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, tropo.RenderJSON());
}