コード例 #1
0
ファイル: TropoUtilities.cs プロジェクト: cfaiette/VoiceModel
        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());
        }
コード例 #2
0
ファイル: TropoUtilities.cs プロジェクト: cfaiette/VoiceModel
        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);
        }