/// <summary> /// Generate the necessary parameters /// </summary> public override List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (Priority != null) { p.Add(new KeyValuePair <string, string>("Priority", Priority.Value.ToString())); } if (AssignmentStatus != null) { p.AddRange(AssignmentStatus.Select(prop => new KeyValuePair <string, string>("AssignmentStatus", prop))); } if (WorkflowSid != null) { p.Add(new KeyValuePair <string, string>("WorkflowSid", WorkflowSid.ToString())); } if (WorkflowName != null) { p.Add(new KeyValuePair <string, string>("WorkflowName", WorkflowName)); } if (TaskQueueSid != null) { p.Add(new KeyValuePair <string, string>("TaskQueueSid", TaskQueueSid.ToString())); } if (TaskQueueName != null) { p.Add(new KeyValuePair <string, string>("TaskQueueName", TaskQueueName)); } if (EvaluateTaskAttributes != null) { p.Add(new KeyValuePair <string, string>("EvaluateTaskAttributes", EvaluateTaskAttributes)); } if (Ordering != null) { p.Add(new KeyValuePair <string, string>("Ordering", Ordering)); } if (HasAddons != null) { p.Add(new KeyValuePair <string, string>("HasAddons", HasAddons.Value.ToString().ToLower())); } if (PageSize != null) { p.Add(new KeyValuePair <string, string>("PageSize", PageSize.ToString())); } return(p); }
/// <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 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; }
/// <summary> /// Generate the necessary parameters /// </summary> public List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (Minutes != null) { p.Add(new KeyValuePair <string, string>("Minutes", Minutes.Value.ToString())); } if (StartDate != null) { p.Add(new KeyValuePair <string, string>("StartDate", Serializers.DateTimeIso8601(StartDate))); } if (EndDate != null) { p.Add(new KeyValuePair <string, string>("EndDate", Serializers.DateTimeIso8601(EndDate))); } if (TaskQueueSid != null) { p.Add(new KeyValuePair <string, string>("TaskQueueSid", TaskQueueSid.ToString())); } if (TaskQueueName != null) { p.Add(new KeyValuePair <string, string>("TaskQueueName", TaskQueueName)); } if (FriendlyName != null) { p.Add(new KeyValuePair <string, string>("FriendlyName", FriendlyName)); } if (TaskChannel != null) { p.Add(new KeyValuePair <string, string>("TaskChannel", TaskChannel)); } return(p); }
/// <summary> /// Generate the necessary parameters /// </summary> public List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (Minutes != null) { p.Add(new KeyValuePair <string, string>("Minutes", Minutes.Value.ToString())); } if (StartDate != null) { p.Add(new KeyValuePair <string, string>("StartDate", StartDate.Value.ToString("yyyy-MM-dd'T'HH:mm:ss"))); } if (EndDate != null) { p.Add(new KeyValuePair <string, string>("EndDate", EndDate.Value.ToString("yyyy-MM-dd'T'HH:mm:ss"))); } if (TaskQueueSid != null) { p.Add(new KeyValuePair <string, string>("TaskQueueSid", TaskQueueSid.ToString())); } if (TaskQueueName != null) { p.Add(new KeyValuePair <string, string>("TaskQueueName", TaskQueueName)); } if (FriendlyName != null) { p.Add(new KeyValuePair <string, string>("FriendlyName", FriendlyName)); } return(p); }