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

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

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

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

            if (DetailsFields != null)
            {
                p.AddRange(DetailsFields.Select(prop => new KeyValuePair <string, string>("Details.Fields", Serializers.JsonObject(prop))));
            }

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

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

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

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

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

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

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

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

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

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

            return(p);
        }