private void makeCallButton_Click(object sender, EventArgs e)
        {
            string title           = txtTitle.Text.ToString();
            long   did             = Convert.ToInt64(didCombo.SelectedValue.ToString());
            string receivers       = txtReceivers.Text.ToString();
            int    announcement_id = Convert.ToInt32(announcementCombo.SelectedValue.ToString());

            AutomaticCallCreator auto = new AutomaticCallCreator();

            auto.title           = title;
            auto.did             = did;
            auto.receivers       = receivers;
            auto.announcement_id = announcement_id;
            ResponseAutomaticCall response = BulutfonApi.CreateAutomaticCall(Authentication.Token, auto);

            if (response.message != null)
            {
                txtTitle.Clear();
                txtReceivers.Clear();
                MessageBox.Show(response.message);
            }
        }
Пример #2
0
 public static ResponseAutomaticCall CreateAutomaticCall(Token token, AutomaticCallCreator automaticCall)
 {
     return(PostObject <AutomaticCallCreator, ResponseAutomaticCall>("automatic-calls", token, automaticCall));
 }