PivotalTrackerAPI/Util/PivotalFilterHelper.cs
/// <summary>
/// General helper for creating a filter, mostly for use in the other methods in the PivotalFilterHelper (does not prepend the ampersand)
/// </summary>
/// <param name="baseFilter">the filter to extend.  Leave blank or null to create a new filter base</param>
/// <param name="filterName">The filter name in the query string</param>
/// <param name="filterValue">The filter value for the query string</param>
/// <returns>A query string</returns>
General helper for creating a filter, mostly for use in the other methods in the PivotalFilterHelper (does not prepend the ampersand)
General helper for creating a filter mostly for use in the other methods in the PivotalFilterHelper ( does not prepend the ampersand )
public static string ConstructFilter(string baseFilter, string filterName, string filterValue)
    {
      string filter = "";
      if (string.IsNullOrEmpty(baseFilter))
        filter = "filter=";
      else
        filter = " ";
      return String.Format("{0}{1}:{2}", filter, filterName, filterValue);
    }
public static string ConstructFilter ( string baseFilter , string filterName , string filterValue ) { string filter = " " ; if ( string . IsNullOrEmpty ( baseFilter ) ) filter = " " ; else filter = " " ; return String . Format ( " " , filter , filterName , filterValue ) ; }
General helper for creating a filter, mostly for use in the other methods in the PivotalFilterHelper (does not prepend the ampersand)
General helper for creating a filter mostly for use in the other methods in the PivotalFilterHelper ( does not prepend the ampersand )
A query string
A query string
baseFilter
string
the filter to extend.  Leave blank or null to create a new filter base
the filter to extend . Leave blank or null to create a new filter base
filterName
string
The filter name in the query string
The filter name in the query string
filterValue
string
The filter value for the query string
The filter value for the query string