Exemple #1
0
        /// <summary>
        /// Generate the necessary parameters
        /// </summary>
        public List<KeyValuePair<string, string>> GetParams()
        {
            var p = new List<KeyValuePair<string, string>>();
            if (DefaultConversationCreatorRoleSid != null)
            {
                p.Add(new KeyValuePair<string, string>("DefaultConversationCreatorRoleSid", DefaultConversationCreatorRoleSid.ToString()));
            }

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

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

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

            return p;
        }
Exemple #2
0
        /// <summary>
        /// Generate the necessary parameters
        /// </summary>
        public List <KeyValuePair <string, string> > GetParams()
        {
            var p = new List <KeyValuePair <string, string> >();

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

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

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

            return(p);
        }