private static string BuildExtraText(Include inc, ReleaseStatus?status, ReleaseType?type = null) { var sb = new StringBuilder(); Query.AddIncludeText(sb, inc); Query.AddReleaseFilter(sb, type, status); return(sb.ToString()); }
private static string BuildExtraText(Include inc, string query, ReleaseType?type = null, ReleaseStatus?status = null) { if (string.IsNullOrWhiteSpace(query)) { throw new ArgumentException("A browse or search query must not be blank.", nameof(query)); } var sb = new StringBuilder(); sb.Append('?').Append(query); Query.AddIncludeText(sb, inc); Query.AddReleaseFilter(sb, type, status); return(sb.ToString()); }