Exemple #1
0
 public override NameValueCollection ToNameValueCollection()
 {
     base.ToNameValueCollection();
     if (ViewBy.HasValue)
     {
         Nv.Add("viewBy", ((DataResolution)ViewBy).ToString().FirstCharacterToLower());
     }
     return(Nv);
 }
 public override NameValueCollection ToNameValueCollection()
 {
     base.ToNameValueCollection();
     if (AutoReply)
     {
         Nv.Add("autoReply", "true");
     }
     return(Nv);
 }
        public override NameValueCollection ToNameValueCollection()
        {
            base.ToNameValueCollection();
            if (Page.HasValue)
            {
                Nv.Add("page", Page.ToString());
            }

            return(Nv);
        }
 public override NameValueCollection ToNameValueCollection()
 {
     base.ToNameValueCollection();
     if (PreviousStart.HasValue)
     {
         Nv.Add("start", PreviousStart.Value.ToIso8601());
     }
     if (PreviousEnd.HasValue)
     {
         Nv.Add("end", PreviousEnd.Value.ToIso8601());
     }
     return(Nv);
 }
 public override NameValueCollection ToNameValueCollection()
 {
     base.ToNameValueCollection();
     if (Folders != null && Folders.Any())
     {
         Nv.Add("types", string.Join(",", Folders));
     }
     if (User >= 0)
     {
         Nv.Add("user", User.ToString());
     }
     return(Nv);
 }
        public override NameValueCollection ToNameValueCollection()
        {
            base.ToNameValueCollection();

            if (!string.IsNullOrEmpty(Status))
            {
                Nv.Add("status", Status);
            }
            if (!ModifiedSince.HasValue)
            {
                Nv.Add("modifiedSince", ModifiedSince.Value.ToIso8601());
            }

            return(Nv);
        }
 public override NameValueCollection ToNameValueCollection()
 {
     base.ToNameValueCollection();
     if (Rating.HasValue)
     {
         Nv.Add("rating", ((int)Rating).ToString());
     }
     if (SortField.HasValue)
     {
         Nv.Add("sortField", ((SortField)SortField).ToString().FirstCharacterToLower());
     }
     if (SortOrder.HasValue)
     {
         Nv.Add("sortOrder", ((SortOrder)SortOrder).ToString().FirstCharacterToLower());
     }
     return(Nv);
 }
        public override NameValueCollection ToNameValueCollection()
        {
            base.ToNameValueCollection();
            if (!string.IsNullOrEmpty(Query))
            {
                Nv.Add("query", Query);
            }

            if (SortField.HasValue)
            {
                Nv.Add("sortField", ((SortField)SortField).ToString().FirstCharacterToLower());
            }

            if (SortField.HasValue)
            {
                Nv.Add("SortOrder", ((SortOrder)SortOrder).ToString().FirstCharacterToLower());
            }

            return(Nv);
        }
 public override NameValueCollection ToNameValueCollection()
 {
     base.ToNameValueCollection();
     if (Page.HasValue)
     {
         Nv.Add("page", Page.ToString());
     }
     if (Rating.HasValue)
     {
         Nv.Add("rating", Rating.ToString());
     }
     if (!string.IsNullOrEmpty(SortField))
     {
         Nv.Add("sortfield", SortField.ToString());
     }
     if (!string.IsNullOrEmpty(SortOrder))
     {
         Nv.Add("sortorder", SortOrder.ToString());
     }
     return(Nv);
 }
Exemple #10
0
        public override NameValueCollection ToNameValueCollection()
        {
            base.ToNameValueCollection();
            if (!string.IsNullOrEmpty(FirstName))
            {
                Nv.Add("firstName", FirstName);
            }
            if (!string.IsNullOrEmpty(LastName))
            {
                Nv.Add("lastName", LastName);
            }
            if (!string.IsNullOrEmpty(Email))
            {
                Nv.Add("email", Email);
            }
            if (ModifiedSince.HasValue)
            {
                Nv.Add("modifiedSince", ModifiedSince.Value.ToIso8601());
            }

            return(Nv);
        }