Skip to content

Commit d9a4b55

Browse files
feat(specs): add optional feedID to composition result set (generated)
algolia/api-clients-automation#5991 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Gavin Wade <gavin.wade12@gmail.com>
1 parent 17a2dfd commit d9a4b55

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

algoliasearch/Models/Composition/SearchResultsItem.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,13 @@ public SearchResultsItem(Dictionary<string, ResultsCompositionInfoResponse> comp
262262
[JsonPropertyName("query")]
263263
public string Query { get; set; }
264264

265+
/// <summary>
266+
/// The ID of the feed.
267+
/// </summary>
268+
/// <value>The ID of the feed.</value>
269+
[JsonPropertyName("feedID")]
270+
public string FeedID { get; set; }
271+
265272
/// <summary>
266273
/// Gets or Sets Compositions
267274
/// </summary>
@@ -309,6 +316,7 @@ public override string ToString()
309316
sb.Append(" Page: ").Append(Page).Append("\n");
310317
sb.Append(" Params: ").Append(Params).Append("\n");
311318
sb.Append(" Query: ").Append(Query).Append("\n");
319+
sb.Append(" FeedID: ").Append(FeedID).Append("\n");
312320
sb.Append(" Compositions: ").Append(Compositions).Append("\n");
313321
sb.Append("}\n");
314322
return sb.ToString();
@@ -419,6 +427,7 @@ public override bool Equals(object obj)
419427
&& (Page == input.Page || Page.Equals(input.Page))
420428
&& (Params == input.Params || (Params != null && Params.Equals(input.Params)))
421429
&& (Query == input.Query || (Query != null && Query.Equals(input.Query)))
430+
&& (FeedID == input.FeedID || (FeedID != null && FeedID.Equals(input.FeedID)))
422431
&& (
423432
Compositions == input.Compositions
424433
|| Compositions != null
@@ -529,6 +538,10 @@ public override int GetHashCode()
529538
{
530539
hashCode = (hashCode * 59) + Query.GetHashCode();
531540
}
541+
if (FeedID != null)
542+
{
543+
hashCode = (hashCode * 59) + FeedID.GetHashCode();
544+
}
532545
if (Compositions != null)
533546
{
534547
hashCode = (hashCode * 59) + Compositions.GetHashCode();

0 commit comments

Comments
 (0)