/// <summary> /// Generate the necessary parameters /// </summary> public List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (Sim != null) { p.Add(new KeyValuePair <string, string>("Sim", Sim.ToString())); } if (Command != null) { p.Add(new KeyValuePair <string, string>("Command", Command)); } if (CallbackMethod != null) { p.Add(new KeyValuePair <string, string>("CallbackMethod", CallbackMethod.ToString())); } if (CallbackUrl != null) { p.Add(new KeyValuePair <string, string>("CallbackUrl", Serializers.Url(CallbackUrl))); } return(p); }
/// <summary> /// Generate the necessary parameters /// </summary> public List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (CallbackUrl != null) { p.Add(new KeyValuePair <string, string>("CallbackUrl", CallbackUrl.ToString())); } if (TriggerValue != null) { p.Add(new KeyValuePair <string, string>("TriggerValue", TriggerValue)); } if (UsageCategory != null) { p.Add(new KeyValuePair <string, string>("UsageCategory", UsageCategory.ToString())); } if (CallbackMethod != null) { p.Add(new KeyValuePair <string, string>("CallbackMethod", CallbackMethod.ToString())); } if (FriendlyName != null) { p.Add(new KeyValuePair <string, string>("FriendlyName", FriendlyName)); } if (Recurring != null) { p.Add(new KeyValuePair <string, string>("Recurring", Recurring.ToString())); } if (TriggerBy != null) { p.Add(new KeyValuePair <string, string>("TriggerBy", TriggerBy.ToString())); } return(p); }
/// <summary> /// Generate the necessary parameters /// </summary> public List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (Command != null) { p.Add(new KeyValuePair <string, string>("Command", Command)); } if (Sim != null) { p.Add(new KeyValuePair <string, string>("Sim", Sim)); } if (CallbackMethod != null) { p.Add(new KeyValuePair <string, string>("CallbackMethod", CallbackMethod.ToString())); } if (CallbackUrl != null) { p.Add(new KeyValuePair <string, string>("CallbackUrl", Serializers.Url(CallbackUrl))); } if (CommandMode != null) { p.Add(new KeyValuePair <string, string>("CommandMode", CommandMode.ToString())); } if (IncludeSid != null) { p.Add(new KeyValuePair <string, string>("IncludeSid", IncludeSid)); } if (DeliveryReceiptRequested != null) { p.Add(new KeyValuePair <string, string>("DeliveryReceiptRequested", DeliveryReceiptRequested.Value.ToString().ToLower())); } return(p); }
/// <summary> /// Generate the necessary parameters /// </summary> public List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (CallbackMethod != null) { p.Add(new KeyValuePair <string, string>("CallbackMethod", CallbackMethod.ToString())); } if (CallbackUrl != null) { p.Add(new KeyValuePair <string, string>("CallbackUrl", CallbackUrl.ToString())); } if (FriendlyName != null) { p.Add(new KeyValuePair <string, string>("FriendlyName", FriendlyName)); } return(p); }
/// <summary> /// Generate the necessary parameters /// </summary> public List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (Command != null) { p.Add(new KeyValuePair <string, string>("Command", Command)); } if (Sim != null) { p.Add(new KeyValuePair <string, string>("Sim", Sim)); } if (CallbackMethod != null) { p.Add(new KeyValuePair <string, string>("CallbackMethod", CallbackMethod.ToString())); } if (CallbackUrl != null) { p.Add(new KeyValuePair <string, string>("CallbackUrl", CallbackUrl.AbsoluteUri)); } if (CommandMode != null) { p.Add(new KeyValuePair <string, string>("CommandMode", CommandMode.ToString())); } if (IncludeSid != null) { p.Add(new KeyValuePair <string, string>("IncludeSid", IncludeSid)); } return(p); }
/// <summary> /// Generate the necessary parameters /// </summary> public List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (UniqueName != null) { p.Add(new KeyValuePair <string, string>("UniqueName", UniqueName)); } if (Status != null) { p.Add(new KeyValuePair <string, string>("Status", Status.ToString())); } if (Fleet != null) { p.Add(new KeyValuePair <string, string>("Fleet", Fleet.ToString())); } if (CallbackUrl != null) { p.Add(new KeyValuePair <string, string>("CallbackUrl", Serializers.Url(CallbackUrl))); } if (CallbackMethod != null) { p.Add(new KeyValuePair <string, string>("CallbackMethod", CallbackMethod.ToString())); } if (AccountSid != null) { p.Add(new KeyValuePair <string, string>("AccountSid", AccountSid.ToString())); } return(p); }
/// <summary> /// Generate the necessary parameters /// </summary> public List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (UniqueName != null) { p.Add(new KeyValuePair <string, string>("UniqueName", UniqueName)); } if (CallbackMethod != null) { p.Add(new KeyValuePair <string, string>("CallbackMethod", CallbackMethod.ToString())); } if (CallbackUrl != null) { p.Add(new KeyValuePair <string, string>("CallbackUrl", CallbackUrl.AbsoluteUri)); } if (FriendlyName != null) { p.Add(new KeyValuePair <string, string>("FriendlyName", FriendlyName)); } if (RatePlan != null) { p.Add(new KeyValuePair <string, string>("RatePlan", RatePlan.ToString())); } if (Status != null) { p.Add(new KeyValuePair <string, string>("Status", Status.ToString())); } if (CommandsCallbackMethod != null) { p.Add(new KeyValuePair <string, string>("CommandsCallbackMethod", CommandsCallbackMethod.ToString())); } if (CommandsCallbackUrl != null) { p.Add(new KeyValuePair <string, string>("CommandsCallbackUrl", CommandsCallbackUrl.AbsoluteUri)); } if (SmsFallbackMethod != null) { p.Add(new KeyValuePair <string, string>("SmsFallbackMethod", SmsFallbackMethod.ToString())); } if (SmsFallbackUrl != null) { p.Add(new KeyValuePair <string, string>("SmsFallbackUrl", SmsFallbackUrl.AbsoluteUri)); } if (SmsMethod != null) { p.Add(new KeyValuePair <string, string>("SmsMethod", SmsMethod.ToString())); } if (SmsUrl != null) { p.Add(new KeyValuePair <string, string>("SmsUrl", SmsUrl.AbsoluteUri)); } if (VoiceFallbackMethod != null) { p.Add(new KeyValuePair <string, string>("VoiceFallbackMethod", VoiceFallbackMethod.ToString())); } if (VoiceFallbackUrl != null) { p.Add(new KeyValuePair <string, string>("VoiceFallbackUrl", VoiceFallbackUrl.AbsoluteUri)); } if (VoiceMethod != null) { p.Add(new KeyValuePair <string, string>("VoiceMethod", VoiceMethod.ToString())); } if (VoiceUrl != null) { p.Add(new KeyValuePair <string, string>("VoiceUrl", VoiceUrl.AbsoluteUri)); } return(p); }