Exemplo n.º 1
0
 private void Skype_VoicemailStatus(Voicemail voicemail, TVoicemailStatus status)
 {
     this.Logger.Debug(System.Reflection.MethodBase.GetCurrentMethod().Name);
 }
Exemplo n.º 2
0
        public void OurVoicemailStatus(Voicemail voicemail, TVoicemailStatus status)
        {
            // Always use try/catch with ANY Skype calls.
            try
            {
                // Write Voicemail Status to Window.
                AddTextToTextBox1(DateTime.Now.ToLocalTime() + ": " +
                 "Voicemail Status - Partner Handle: " + voicemail.PartnerHandle);

                // Example of checking length before adding to Window.
                if (voicemail.PartnerDisplayName.Length > 0) AddTextToTextBox1(" - Partner Display Name: " + voicemail.PartnerDisplayName);

                // Continue to write Voicemail Status to Window.
                AddTextToTextBox1(" - Converted TVoicemailStatus Status: " + skype.Convert.VoicemailStatusToText(status) +
                 " - TVoicemailStatus: " + status +
                 "\r\n");
            }
            catch (Exception e)
            {
                // Possibly old Skype4COM version, log an error, drop into debug if wanted.
                AddTextToTextBox1(DateTime.Now.ToLocalTime() + ": " +
                 "Voicemail Status Event Fired - Bad Text" +
                 " - Exception Source: " + e.Source + " - Exception Message: " + e.Message +
                 "\r\n");

                // If the "Use Auto Debug" check box is checked and we are in debug, drop into debug here when retry, otherwise, prompt for action.
                Debug.Assert(!this.UseAutoDebug.Checked);
            }
        }