/// <summary> /// Generate the necessary parameters /// </summary> public List <KeyValuePair <string, string> > GetParams() { var p = new List <KeyValuePair <string, string> >(); if (Timeout != null) { p.Add(new KeyValuePair <string, string>("Timeout", Timeout.Value.ToString())); } if (Priority != null) { p.Add(new KeyValuePair <string, string>("Priority", Priority.Value.ToString())); } if (TaskChannel != null) { p.Add(new KeyValuePair <string, string>("TaskChannel", TaskChannel)); } if (WorkflowSid != null) { p.Add(new KeyValuePair <string, string>("WorkflowSid", WorkflowSid.ToString())); } if (Attributes != null) { p.Add(new KeyValuePair <string, string>("Attributes", Attributes)); } return(p); }
/// <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 (TaskChannel != null) { p.Add(new KeyValuePair <string, string>("TaskChannel", TaskChannel)); } if (Sid != null) { p.Add(new KeyValuePair <string, string>("Sid", Sid.ToString())); } if (PageSize != null) { p.Add(new KeyValuePair <string, string>("PageSize", PageSize.ToString())); } return(p); }