void skype_SmsMessageStatusChanged(SmsMessage pMessage, TSmsMessageStatus Status) { switch (Status) { case TSmsMessageStatus.smsMessageStatusComposing: break; case TSmsMessageStatus.smsMessageStatusDelivered: break; case TSmsMessageStatus.smsMessageStatusFailed: break; case TSmsMessageStatus.smsMessageStatusRead: break; case TSmsMessageStatus.smsMessageStatusReceived: break; case TSmsMessageStatus.smsMessageStatusSendingToServer: break; case TSmsMessageStatus.smsMessageStatusSentToServer: break; case TSmsMessageStatus.smsMessageStatusSomeTargetsFailed: break; case TSmsMessageStatus.smsMessageStatusUnknown: break; default: break; } }
private void Skype_SmsMessageStatusChanged(SmsMessage pMessage, TSmsMessageStatus Status) { try { if (Status.Equals(TSmsMessageStatus.smsMessageStatusReceived)) { Trigger(); } } catch (Exception ex) { ErrorLog.AddError(ErrorType.Failure, string.Format(Strings.Error_EventCantBeTriggered, Strings.ReceiveSms_Title)); Logger.Write(ex); } }
private void Skype_SmsMessageStatusChanged(SmsMessage smsmessage, TSmsMessageStatus status) { this.Logger.Debug(System.Reflection.MethodBase.GetCurrentMethod().Name); }
public void OurSmsMessageStatusChanged(SmsMessage smsmessage, TSmsMessageStatus status) { // Always use try/catch with ANY Skype calls. try { // Write SMS Message Status Changed to Window. AddTextToTextBox1(DateTime.Now.ToLocalTime() + ": " + "SMS Message Status Changed - SMS Id: " + smsmessage.Id + " - SMS Body: " + smsmessage.Body + " - SMS Price: " + smsmessage.Price + " - SMS Converted Message Type: " + skype.Convert.SmsMessageTypeToText(smsmessage.Type) + " - SMS Message Type: " + smsmessage.Type + " - SMS Converted TSmsMessageStatus Status: " + skype.Convert.SmsMessageStatusToText(status) + " - SMS TSmsMessageStatus: " + status + "\r\n"); } catch (Exception e) { // Possibly old Skype4COM version, log an error, drop into debug if wanted. AddTextToTextBox1(DateTime.Now.ToLocalTime() + ": " + "SMS Message Status Changed 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); } }