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

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

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

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

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

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

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

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

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

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

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

            return(p);
        }
        /// <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);
        }
Beispiel #3
0
        /// <summary>
        /// Generate the necessary parameters
        /// </summary>
        public override List<KeyValuePair<string, string>> GetParams()
        {
            var p = new List<KeyValuePair<string, string>>();
            if (EndDate != null)
            {
                p.Add(new KeyValuePair<string, string>("EndDate", EndDate.Value.ToString("yyyy-MM-dd'T'HH:mm:ss")));
            }

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

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

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

            if (StartDate != null)
            {
                p.Add(new KeyValuePair<string, string>("StartDate", StartDate.Value.ToString("yyyy-MM-dd'T'HH:mm:ss")));
            }

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

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

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

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

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

            return p;
        }