예제 #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);
        }
예제 #2
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;
        }