private static string ConvertCall(global::VoiceModel.Call model) { Tropo tmodel = new Tropo(); ConvertCall(model, ref tmodel); tmodel.On("continue", model.nextUri, null); return(tmodel.RenderJSON()); }
private static void ConvertCall(global::VoiceModel.Call model, ref Tropo tmodel) { List <string> toList = new List <string>(); toList.Add(model.to); TropoCSharp.Tropo.Call call = new TropoCSharp.Tropo.Call() { To = toList, From = model.from }; tmodel.Call(call); }