예제 #1
0
        private void saveWikipage_Click(object sender, RoutedEventArgs e)
        {
            this.statusLabel.Content = "Saving wikipage.";

            try
            {
                string       rawWikipage   = String.Empty;
                FlowDocument document      = this.outputBox.Document;
                TextRange    wholeDocument = new TextRange(document.ContentStart, document.ContentEnd);
                rawWikipage = wholeDocument.Text;
                if (!String.IsNullOrEmpty(rawWikipage))
                {
                    List <PutParameters> putParametersList = new List <PutParameters>();
                    PutParameters        putParameters     = new PutParameters();
                    putParameters.ChangeSummary = "Generated summary";
                    putParameters.IsMinor       = true;
                    putParametersList.Add(putParameters);

                    this.clientProxy.PutPage(this.getWikipageText.Text, rawWikipage, putParametersList.ToArray());
                }
                else
                {
                    this.statusLabel.Content = "Nothing to save.";
                }
            }
            catch (CommunicationException ce)
            {
                this.statusLabel.Content = "Couldn't save wiki page. Cause: " + ce.Message;
            }

            this.statusLabel.Content = "Wikipage saved!";
        }
 // Update Custom Data by Key
 public Task <PutResponse> Put(PutParameters parameters)
 {
     return(Put(parameters as object));
 }
예제 #3
0
 // <p style='font-style:italic;'>Since 1.0.6 (Release 5.15)</p><p>Renews the existent subscription if the request body is empty. If event filters are specified, calling this method modifies the event filters for the existing subscription. The client application can extend or narrow the events for which it receives notifications in the frame of one subscription.</p><h4>Usage Plan Group</h4><p>Medium</p>
 public Task <SubscriptionInfo> Put(PutParameters parameters)
 {
     return(Put(parameters as object));
 }
예제 #4
0
 // Update Meeting
 public Task <MeetingInfo> Put(PutParameters parameters)
 {
     return(Put(parameters as object));
 }
예제 #5
0
 // Update Answering Rule by ID
 public Task <AnsweringRuleInfo> Put(PutParameters parameters)
 {
     return(Put(parameters as object));
 }
 // Updates personal contact information by contact ID(s). Batch request is supported
 public Task <PersonalContactResource> Put(PutParameters parameters)
 {
     return(Put(parameters as object));
 }
 // Update Conferencing info
 public Task <ConferencingInfo> Put(PutParameters parameters)
 {
     return(Put(parameters as object));
 }