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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            return(p);
        }