public static SearchBuilder Build(SearchType type, string query, NicoNicoTarget target, NicoNicoSort sort_field, bool order) { string sort_param = (order ? "%2b" : "-") + sort_field.GetLabel(); //+はエンコードしないとエラーになる return(new SearchBuilder(string.Format(EndPoints.Search, type.GetLabel(), query, target.GetLabel(), sort_param, type.GetLabel(1)))); }