Skip to content

Commit b7620f8

Browse files
feat(specs): add renderingContent query parameter in Composition API main injection (generated)
algolia/api-clients-automation#5549 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clara Muller <[email protected]>
1 parent 8a31334 commit b7620f8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

algoliasearch/Models/Composition/MainInjectionQueryParameters.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,12 @@ public MainInjectionQueryParameters() { }
367367
[JsonPropertyName("maxValuesPerFacet")]
368368
public int? MaxValuesPerFacet { get; set; }
369369

370+
/// <summary>
371+
/// Gets or Sets RenderingContent
372+
/// </summary>
373+
[JsonPropertyName("renderingContent")]
374+
public RenderingContent RenderingContent { get; set; }
375+
370376
/// <summary>
371377
/// Order in which to retrieve facet values - `count`. Facet values are retrieved by decreasing count. The count is the number of matching records containing this facet value - `alpha`. Retrieve facet values alphabetically This setting doesn't influence how facet values are displayed in your UI (see `renderingContent`). For more information, see [facet value display](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/facet-display/js).
372378
/// </summary>
@@ -446,6 +452,7 @@ public override string ToString()
446452
sb.Append(" Facets: ").Append(Facets).Append("\n");
447453
sb.Append(" HitsPerPage: ").Append(HitsPerPage).Append("\n");
448454
sb.Append(" MaxValuesPerFacet: ").Append(MaxValuesPerFacet).Append("\n");
455+
sb.Append(" RenderingContent: ").Append(RenderingContent).Append("\n");
449456
sb.Append(" SortFacetValuesBy: ").Append(SortFacetValuesBy).Append("\n");
450457
sb.Append(" SumOrFiltersScores: ").Append(SumOrFiltersScores).Append("\n");
451458
sb.Append("}\n");
@@ -658,6 +665,10 @@ public override bool Equals(object obj)
658665
MaxValuesPerFacet == input.MaxValuesPerFacet
659666
|| MaxValuesPerFacet.Equals(input.MaxValuesPerFacet)
660667
)
668+
&& (
669+
RenderingContent == input.RenderingContent
670+
|| (RenderingContent != null && RenderingContent.Equals(input.RenderingContent))
671+
)
661672
&& (
662673
SortFacetValuesBy == input.SortFacetValuesBy
663674
|| (SortFacetValuesBy != null && SortFacetValuesBy.Equals(input.SortFacetValuesBy))
@@ -803,6 +814,10 @@ public override int GetHashCode()
803814
}
804815
hashCode = (hashCode * 59) + HitsPerPage.GetHashCode();
805816
hashCode = (hashCode * 59) + MaxValuesPerFacet.GetHashCode();
817+
if (RenderingContent != null)
818+
{
819+
hashCode = (hashCode * 59) + RenderingContent.GetHashCode();
820+
}
806821
if (SortFacetValuesBy != null)
807822
{
808823
hashCode = (hashCode * 59) + SortFacetValuesBy.GetHashCode();

0 commit comments

Comments
 (0)