public string GetFilterString()
{
string f = string.Empty;
if (!string.IsNullOrEmpty(this.SortBy))
f += "sort_by=" + this.SortBy;
if (this.SortDirection == SortDirection.descending)
{
if (!string.IsNullOrEmpty(f))
f += "&";
f += "sort_direction=0";
}
if (this.Page > 1)
{
if (!string.IsNullOrEmpty(f))
f += "&";
f += "page=" + this.Page.ToString();
}
if (this.PerPage > 0)
{
if (!string.IsNullOrEmpty(f))
f += "&";
f += "per_page=" + this.PerPage.ToString();
}
return f;
}