Exemplo n.º 1
0
        /// <summary>
        /// Generate the necessary parameters
        /// </summary>
        public List <KeyValuePair <string, string> > GetParams()
        {
            var p = new List <KeyValuePair <string, string> >();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            return(p);
        }