/// <summary> /// Generate the necessary parameters /// </summary> public List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (StartDate != null) { p.Add(new KeyValuePair <string, string>("StartDate", StartDate.Value.ToString("yyyy-MM-dd"))); } if (EndDate != null) { p.Add(new KeyValuePair <string, string>("EndDate", EndDate.Value.ToString("yyyy-MM-dd"))); } if (IncludeSubaccounts != null) { p.Add(new KeyValuePair <string, string>("IncludeSubaccounts", IncludeSubaccounts.Value.ToString())); } if (StatusCallback != null) { p.Add(new KeyValuePair <string, string>("StatusCallback", StatusCallback.ToString())); } if (StatusCallbackMethod != null) { p.Add(new KeyValuePair <string, string>("StatusCallbackMethod", StatusCallbackMethod.ToString())); } return(p); }
/// <summary> /// Generate the necessary parameters /// </summary> public List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (To != null) { p.Add(new KeyValuePair <string, string>("To", To.ToString())); } if (From != null) { p.Add(new KeyValuePair <string, string>("From", From.ToString())); } if (MessagingServiceSid != null) { p.Add(new KeyValuePair <string, string>("MessagingServiceSid", MessagingServiceSid.ToString())); } if (Body != null) { p.Add(new KeyValuePair <string, string>("Body", Body)); } if (MediaUrl != null) { p.AddRange(MediaUrl.Select(prop => new KeyValuePair <string, string>("MediaUrl", prop.ToString()))); } if (StatusCallback != null) { p.Add(new KeyValuePair <string, string>("StatusCallback", StatusCallback.ToString())); } if (ApplicationSid != null) { p.Add(new KeyValuePair <string, string>("ApplicationSid", ApplicationSid.ToString())); } if (MaxPrice != null) { p.Add(new KeyValuePair <string, string>("MaxPrice", MaxPrice.Value.ToString())); } if (ProvideFeedback != null) { p.Add(new KeyValuePair <string, string>("ProvideFeedback", ProvideFeedback.Value.ToString())); } if (ValidityPeriod != null) { p.Add(new KeyValuePair <string, string>("ValidityPeriod", ValidityPeriod.Value.ToString())); } return(p); }
/// <summary> /// Generate the necessary parameters /// </summary> public List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (EnableTurn != null) { p.Add(new KeyValuePair <string, string>("EnableTurn", EnableTurn.Value.ToString())); } if (Type != null) { p.Add(new KeyValuePair <string, string>("Type", Type.ToString())); } if (UniqueName != null) { p.Add(new KeyValuePair <string, string>("UniqueName", UniqueName)); } if (StatusCallback != null) { p.Add(new KeyValuePair <string, string>("StatusCallback", StatusCallback.ToString())); } if (StatusCallbackMethod != null) { p.Add(new KeyValuePair <string, string>("StatusCallbackMethod", StatusCallbackMethod.ToString())); } if (MaxParticipants != null) { p.Add(new KeyValuePair <string, string>("MaxParticipants", MaxParticipants.Value.ToString())); } if (RecordParticipantsOnConnect != null) { p.Add(new KeyValuePair <string, string>("RecordParticipantsOnConnect", RecordParticipantsOnConnect.Value.ToString())); } return(p); }
/// <summary> /// Generate the necessary parameters /// </summary> public List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (Url != null) { p.Add(new KeyValuePair <string, string>("Url", Url.ToString())); } if (Method != null) { p.Add(new KeyValuePair <string, string>("Method", Method.ToString())); } if (Status != null) { p.Add(new KeyValuePair <string, string>("Status", Status.ToString())); } if (FallbackUrl != null) { p.Add(new KeyValuePair <string, string>("FallbackUrl", FallbackUrl.ToString())); } if (FallbackMethod != null) { p.Add(new KeyValuePair <string, string>("FallbackMethod", FallbackMethod.ToString())); } if (StatusCallback != null) { p.Add(new KeyValuePair <string, string>("StatusCallback", StatusCallback.ToString())); } if (StatusCallbackMethod != null) { p.Add(new KeyValuePair <string, string>("StatusCallbackMethod", StatusCallbackMethod.ToString())); } return(p); }
/// <summary> /// Generate the necessary parameters /// </summary> public List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (VoiceUrl != null) { p.Add(new KeyValuePair <string, string>("VoiceUrl", VoiceUrl.ToString())); } if (VoiceMethod != null) { p.Add(new KeyValuePair <string, string>("VoiceMethod", VoiceMethod.ToString())); } if (SmsUrl != null) { p.Add(new KeyValuePair <string, string>("SmsUrl", SmsUrl.ToString())); } if (SmsMethod != null) { p.Add(new KeyValuePair <string, string>("SmsMethod", SmsMethod.ToString())); } if (StatusCallback != null) { p.Add(new KeyValuePair <string, string>("StatusCallback", StatusCallback.ToString())); } if (StatusCallbackMethod != null) { p.Add(new KeyValuePair <string, string>("StatusCallbackMethod", StatusCallbackMethod.ToString())); } return(p); }
/// <summary> /// Generate the necessary parameters /// </summary> public List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (PhoneNumber != null) { p.Add(new KeyValuePair <string, string>("PhoneNumber", PhoneNumber.ToString())); } if (FriendlyName != null) { p.Add(new KeyValuePair <string, string>("FriendlyName", FriendlyName)); } if (CallDelay != null) { p.Add(new KeyValuePair <string, string>("CallDelay", CallDelay.Value.ToString())); } if (Extension != null) { p.Add(new KeyValuePair <string, string>("Extension", Extension)); } if (StatusCallback != null) { p.Add(new KeyValuePair <string, string>("StatusCallback", StatusCallback.ToString())); } if (StatusCallbackMethod != null) { p.Add(new KeyValuePair <string, string>("StatusCallbackMethod", StatusCallbackMethod.ToString())); } return(p); }
/// <summary> /// Generate the necessary parameters /// </summary> public List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (PhoneNumber != null) { p.Add(new KeyValuePair <string, string>("PhoneNumber", PhoneNumber.ToString())); } if (AreaCode != null) { p.Add(new KeyValuePair <string, string>("AreaCode", AreaCode)); } if (ApiVersion != null) { p.Add(new KeyValuePair <string, string>("ApiVersion", ApiVersion)); } if (FriendlyName != null) { p.Add(new KeyValuePair <string, string>("FriendlyName", FriendlyName)); } if (SmsApplicationSid != null) { p.Add(new KeyValuePair <string, string>("SmsApplicationSid", SmsApplicationSid.ToString())); } if (SmsFallbackMethod != null) { p.Add(new KeyValuePair <string, string>("SmsFallbackMethod", SmsFallbackMethod.ToString())); } if (SmsFallbackUrl != null) { p.Add(new KeyValuePair <string, string>("SmsFallbackUrl", SmsFallbackUrl.ToString())); } if (SmsMethod != null) { p.Add(new KeyValuePair <string, string>("SmsMethod", SmsMethod.ToString())); } if (SmsUrl != null) { p.Add(new KeyValuePair <string, string>("SmsUrl", SmsUrl.ToString())); } if (StatusCallback != null) { p.Add(new KeyValuePair <string, string>("StatusCallback", StatusCallback.ToString())); } if (StatusCallbackMethod != null) { p.Add(new KeyValuePair <string, string>("StatusCallbackMethod", StatusCallbackMethod.ToString())); } if (VoiceApplicationSid != null) { p.Add(new KeyValuePair <string, string>("VoiceApplicationSid", VoiceApplicationSid.ToString())); } if (VoiceCallerIdLookup != null) { p.Add(new KeyValuePair <string, string>("VoiceCallerIdLookup", VoiceCallerIdLookup.Value.ToString())); } if (VoiceFallbackMethod != null) { p.Add(new KeyValuePair <string, string>("VoiceFallbackMethod", VoiceFallbackMethod.ToString())); } if (VoiceFallbackUrl != null) { p.Add(new KeyValuePair <string, string>("VoiceFallbackUrl", VoiceFallbackUrl.ToString())); } if (VoiceMethod != null) { p.Add(new KeyValuePair <string, string>("VoiceMethod", VoiceMethod.ToString())); } if (VoiceUrl != null) { p.Add(new KeyValuePair <string, string>("VoiceUrl", VoiceUrl.ToString())); } if (EmergencyStatus != null) { p.Add(new KeyValuePair <string, string>("EmergencyStatus", EmergencyStatus.ToString())); } if (EmergencyAddressSid != null) { p.Add(new KeyValuePair <string, string>("EmergencyAddressSid", EmergencyAddressSid.ToString())); } if (TrunkSid != null) { p.Add(new KeyValuePair <string, string>("TrunkSid", TrunkSid.ToString())); } return(p); }
/// <summary> /// Generate the necessary parameters /// </summary> public List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (From != null) { p.Add(new KeyValuePair <string, string>("From", From.ToString())); } if (To != null) { p.Add(new KeyValuePair <string, string>("To", To.ToString())); } if (StatusCallback != null) { p.Add(new KeyValuePair <string, string>("StatusCallback", StatusCallback.ToString())); } if (StatusCallbackMethod != null) { p.Add(new KeyValuePair <string, string>("StatusCallbackMethod", StatusCallbackMethod.ToString())); } if (StatusCallbackEvent != null) { p.AddRange(StatusCallbackEvent.Select(prop => new KeyValuePair <string, string>("StatusCallbackEvent", prop))); } if (Timeout != null) { p.Add(new KeyValuePair <string, string>("Timeout", Timeout.Value.ToString())); } if (Record != null) { p.Add(new KeyValuePair <string, string>("Record", Record.Value.ToString())); } if (Muted != null) { p.Add(new KeyValuePair <string, string>("Muted", Muted.Value.ToString())); } if (Beep != null) { p.Add(new KeyValuePair <string, string>("Beep", Beep)); } if (StartConferenceOnEnter != null) { p.Add(new KeyValuePair <string, string>("StartConferenceOnEnter", StartConferenceOnEnter.Value.ToString())); } if (EndConferenceOnExit != null) { p.Add(new KeyValuePair <string, string>("EndConferenceOnExit", EndConferenceOnExit.Value.ToString())); } if (WaitUrl != null) { p.Add(new KeyValuePair <string, string>("WaitUrl", WaitUrl.ToString())); } if (WaitMethod != null) { p.Add(new KeyValuePair <string, string>("WaitMethod", WaitMethod.ToString())); } if (EarlyMedia != null) { p.Add(new KeyValuePair <string, string>("EarlyMedia", EarlyMedia.Value.ToString())); } if (MaxParticipants != null) { p.Add(new KeyValuePair <string, string>("MaxParticipants", MaxParticipants.Value.ToString())); } if (ConferenceRecord != null) { p.Add(new KeyValuePair <string, string>("ConferenceRecord", ConferenceRecord)); } if (ConferenceTrim != null) { p.Add(new KeyValuePair <string, string>("ConferenceTrim", ConferenceTrim)); } if (ConferenceStatusCallback != null) { p.Add(new KeyValuePair <string, string>("ConferenceStatusCallback", ConferenceStatusCallback.ToString())); } if (ConferenceStatusCallbackMethod != null) { p.Add(new KeyValuePair <string, string>("ConferenceStatusCallbackMethod", ConferenceStatusCallbackMethod.ToString())); } if (ConferenceStatusCallbackEvent != null) { p.AddRange(ConferenceStatusCallbackEvent.Select(prop => new KeyValuePair <string, string>("ConferenceStatusCallbackEvent", prop))); } if (RecordingChannels != null) { p.Add(new KeyValuePair <string, string>("RecordingChannels", RecordingChannels)); } if (RecordingStatusCallback != null) { p.Add(new KeyValuePair <string, string>("RecordingStatusCallback", RecordingStatusCallback.ToString())); } if (RecordingStatusCallbackMethod != null) { p.Add(new KeyValuePair <string, string>("RecordingStatusCallbackMethod", RecordingStatusCallbackMethod.ToString())); } if (SipAuthUsername != null) { p.Add(new KeyValuePair <string, string>("SipAuthUsername", SipAuthUsername)); } if (SipAuthPassword != null) { p.Add(new KeyValuePair <string, string>("SipAuthPassword", SipAuthPassword)); } if (Region != null) { p.Add(new KeyValuePair <string, string>("Region", Region)); } if (ConferenceRecordingStatusCallback != null) { p.Add(new KeyValuePair <string, string>("ConferenceRecordingStatusCallback", ConferenceRecordingStatusCallback.ToString())); } if (ConferenceRecordingStatusCallbackMethod != null) { p.Add(new KeyValuePair <string, string>("ConferenceRecordingStatusCallbackMethod", ConferenceRecordingStatusCallbackMethod.ToString())); } return(p); }
/// <summary> /// Generate the necessary parameters /// </summary> public List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (FriendlyName != null) { p.Add(new KeyValuePair <string, string>("FriendlyName", FriendlyName)); } if (ApiVersion != null) { p.Add(new KeyValuePair <string, string>("ApiVersion", ApiVersion)); } if (VoiceUrl != null) { p.Add(new KeyValuePair <string, string>("VoiceUrl", VoiceUrl.ToString())); } if (VoiceMethod != null) { p.Add(new KeyValuePair <string, string>("VoiceMethod", VoiceMethod.ToString())); } if (VoiceFallbackUrl != null) { p.Add(new KeyValuePair <string, string>("VoiceFallbackUrl", VoiceFallbackUrl.ToString())); } if (VoiceFallbackMethod != null) { p.Add(new KeyValuePair <string, string>("VoiceFallbackMethod", VoiceFallbackMethod.ToString())); } if (StatusCallback != null) { p.Add(new KeyValuePair <string, string>("StatusCallback", StatusCallback.ToString())); } if (StatusCallbackMethod != null) { p.Add(new KeyValuePair <string, string>("StatusCallbackMethod", StatusCallbackMethod.ToString())); } if (VoiceCallerIdLookup != null) { p.Add(new KeyValuePair <string, string>("VoiceCallerIdLookup", VoiceCallerIdLookup.Value.ToString())); } if (SmsUrl != null) { p.Add(new KeyValuePair <string, string>("SmsUrl", SmsUrl.ToString())); } if (SmsMethod != null) { p.Add(new KeyValuePair <string, string>("SmsMethod", SmsMethod.ToString())); } if (SmsFallbackUrl != null) { p.Add(new KeyValuePair <string, string>("SmsFallbackUrl", SmsFallbackUrl.ToString())); } if (SmsFallbackMethod != null) { p.Add(new KeyValuePair <string, string>("SmsFallbackMethod", SmsFallbackMethod.ToString())); } if (SmsStatusCallback != null) { p.Add(new KeyValuePair <string, string>("SmsStatusCallback", SmsStatusCallback.ToString())); } if (MessageStatusCallback != null) { p.Add(new KeyValuePair <string, string>("MessageStatusCallback", MessageStatusCallback.ToString())); } return(p); }
/// <summary> /// Generate the necessary parameters /// </summary> public List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (To != null) { p.Add(new KeyValuePair <string, string>("To", To.ToString())); } if (From != null) { p.Add(new KeyValuePair <string, string>("From", From.ToString())); } if (Url != null) { p.Add(new KeyValuePair <string, string>("Url", Url.ToString())); } if (ApplicationSid != null) { p.Add(new KeyValuePair <string, string>("ApplicationSid", ApplicationSid.ToString())); } if (Method != null) { p.Add(new KeyValuePair <string, string>("Method", Method.ToString())); } if (FallbackUrl != null) { p.Add(new KeyValuePair <string, string>("FallbackUrl", FallbackUrl.ToString())); } if (FallbackMethod != null) { p.Add(new KeyValuePair <string, string>("FallbackMethod", FallbackMethod.ToString())); } if (StatusCallback != null) { p.Add(new KeyValuePair <string, string>("StatusCallback", StatusCallback.ToString())); } if (StatusCallbackEvent != null) { p.AddRange(StatusCallbackEvent.Select(prop => new KeyValuePair <string, string>("StatusCallbackEvent", prop))); } if (StatusCallbackMethod != null) { p.Add(new KeyValuePair <string, string>("StatusCallbackMethod", StatusCallbackMethod.ToString())); } if (SendDigits != null) { p.Add(new KeyValuePair <string, string>("SendDigits", SendDigits)); } if (IfMachine != null) { p.Add(new KeyValuePair <string, string>("IfMachine", IfMachine)); } if (Timeout != null) { p.Add(new KeyValuePair <string, string>("Timeout", Timeout.Value.ToString())); } if (Record != null) { p.Add(new KeyValuePair <string, string>("Record", Record.Value.ToString())); } if (RecordingChannels != null) { p.Add(new KeyValuePair <string, string>("RecordingChannels", RecordingChannels)); } if (RecordingStatusCallback != null) { p.Add(new KeyValuePair <string, string>("RecordingStatusCallback", RecordingStatusCallback)); } if (RecordingStatusCallbackMethod != null) { p.Add(new KeyValuePair <string, string>("RecordingStatusCallbackMethod", RecordingStatusCallbackMethod.ToString())); } if (SipAuthUsername != null) { p.Add(new KeyValuePair <string, string>("SipAuthUsername", SipAuthUsername)); } if (SipAuthPassword != null) { p.Add(new KeyValuePair <string, string>("SipAuthPassword", SipAuthPassword)); } if (MachineDetection != null) { p.Add(new KeyValuePair <string, string>("MachineDetection", MachineDetection)); } if (MachineDetectionTimeout != null) { p.Add(new KeyValuePair <string, string>("MachineDetectionTimeout", MachineDetectionTimeout.Value.ToString())); } return(p); }