コード例 #1
0
        /// <summary>
        /// Generate the necessary parameters
        /// </summary>
        public List <KeyValuePair <string, string> > GetParams()
        {
            var p = new List <KeyValuePair <string, string> >();

            if (DomainName != null)
            {
                p.Add(new KeyValuePair <string, string>("DomainName", DomainName));
            }

            if (FriendlyName != null)
            {
                p.Add(new KeyValuePair <string, string>("FriendlyName", FriendlyName));
            }

            if (AuthType != null)
            {
                p.Add(new KeyValuePair <string, string>("AuthType", AuthType));
            }

            if (VoiceUrl != null)
            {
                p.Add(new KeyValuePair <string, string>("VoiceUrl", VoiceUrl.AbsoluteUri));
            }

            if (VoiceMethod != null)
            {
                p.Add(new KeyValuePair <string, string>("VoiceMethod", VoiceMethod.ToString()));
            }

            if (VoiceFallbackUrl != null)
            {
                p.Add(new KeyValuePair <string, string>("VoiceFallbackUrl", VoiceFallbackUrl.AbsoluteUri));
            }

            if (VoiceFallbackMethod != null)
            {
                p.Add(new KeyValuePair <string, string>("VoiceFallbackMethod", VoiceFallbackMethod.ToString()));
            }

            if (VoiceStatusCallbackUrl != null)
            {
                p.Add(new KeyValuePair <string, string>("VoiceStatusCallbackUrl", VoiceStatusCallbackUrl.AbsoluteUri));
            }

            if (VoiceStatusCallbackMethod != null)
            {
                p.Add(new KeyValuePair <string, string>("VoiceStatusCallbackMethod", VoiceStatusCallbackMethod.ToString()));
            }

            if (SipRegistration != null)
            {
                p.Add(new KeyValuePair <string, string>("SipRegistration", SipRegistration.Value.ToString()));
            }

            return(p);
        }
コード例 #2
0
        /// <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 (VoiceFallbackMethod != null)
            {
                p.Add(new KeyValuePair <string, string>("VoiceFallbackMethod", VoiceFallbackMethod.ToString()));
            }

            if (VoiceFallbackUrl != null)
            {
                p.Add(new KeyValuePair <string, string>("VoiceFallbackUrl", Serializers.Url(VoiceFallbackUrl)));
            }

            if (VoiceMethod != null)
            {
                p.Add(new KeyValuePair <string, string>("VoiceMethod", VoiceMethod.ToString()));
            }

            if (VoiceStatusCallbackMethod != null)
            {
                p.Add(new KeyValuePair <string, string>("VoiceStatusCallbackMethod", VoiceStatusCallbackMethod.ToString()));
            }

            if (VoiceStatusCallbackUrl != null)
            {
                p.Add(new KeyValuePair <string, string>("VoiceStatusCallbackUrl", Serializers.Url(VoiceStatusCallbackUrl)));
            }

            if (VoiceUrl != null)
            {
                p.Add(new KeyValuePair <string, string>("VoiceUrl", Serializers.Url(VoiceUrl)));
            }

            if (SipRegistration != null)
            {
                p.Add(new KeyValuePair <string, string>("SipRegistration", SipRegistration.Value.ToString().ToLower()));
            }

            if (DomainName != null)
            {
                p.Add(new KeyValuePair <string, string>("DomainName", DomainName));
            }

            if (EmergencyCallingEnabled != null)
            {
                p.Add(new KeyValuePair <string, string>("EmergencyCallingEnabled", EmergencyCallingEnabled.Value.ToString().ToLower()));
            }

            return(p);
        }
コード例 #3
0
        /// <summary>
        /// Generate the necessary parameters
        /// </summary>
        public List <KeyValuePair <string, string> > GetParams()
        {
            var p = new List <KeyValuePair <string, string> >();

            if (AuthType != null)
            {
                p.Add(new KeyValuePair <string, string>("AuthType", AuthType));
            }

            if (FriendlyName != null)
            {
                p.Add(new KeyValuePair <string, string>("FriendlyName", FriendlyName));
            }

            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 (VoiceStatusCallbackMethod != null)
            {
                p.Add(new KeyValuePair <string, string>("VoiceStatusCallbackMethod", VoiceStatusCallbackMethod.ToString()));
            }

            if (VoiceStatusCallbackUrl != null)
            {
                p.Add(new KeyValuePair <string, string>("VoiceStatusCallbackUrl", VoiceStatusCallbackUrl.ToString()));
            }

            if (VoiceUrl != null)
            {
                p.Add(new KeyValuePair <string, string>("VoiceUrl", VoiceUrl.ToString()));
            }

            return(p);
        }