Skip to content

Commit 6b490c1

Browse files
algolia-botcdhawke
andcommitted
feat(specs): update estimate response type [skip-bc] (generated)
algolia/api-clients-automation#4101 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Christopher Hawke <[email protected]>
1 parent 00593f9 commit 6b490c1

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

algoliasearch/Models/Abtesting/EstimateABTestResponse.cs

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,11 @@ public EstimateABTestResponse()
3131
public long? DurationDays { get; set; }
3232

3333
/// <summary>
34-
/// Number of tracked searches needed to be able to detect the configured effect for the control variant.
34+
/// Sample size estimates for each variant. The first element is the control variant. Each element is the estimated number of searches required to achieve the desired statistical significance.
3535
/// </summary>
36-
/// <value>Number of tracked searches needed to be able to detect the configured effect for the control variant.</value>
37-
[JsonPropertyName("controlSampleSize")]
38-
public long? ControlSampleSize { get; set; }
39-
40-
/// <summary>
41-
/// Number of tracked searches needed to be able to detect the configured effect for the experiment variant.
42-
/// </summary>
43-
/// <value>Number of tracked searches needed to be able to detect the configured effect for the experiment variant.</value>
44-
[JsonPropertyName("experimentSampleSize")]
45-
public long? ExperimentSampleSize { get; set; }
36+
/// <value>Sample size estimates for each variant. The first element is the control variant. Each element is the estimated number of searches required to achieve the desired statistical significance. </value>
37+
[JsonPropertyName("sampleSizes")]
38+
public List<long> SampleSizes { get; set; }
4639

4740
/// <summary>
4841
/// Returns the string presentation of the object
@@ -53,8 +46,7 @@ public override string ToString()
5346
StringBuilder sb = new StringBuilder();
5447
sb.Append("class EstimateABTestResponse {\n");
5548
sb.Append(" DurationDays: ").Append(DurationDays).Append("\n");
56-
sb.Append(" ControlSampleSize: ").Append(ControlSampleSize).Append("\n");
57-
sb.Append(" ExperimentSampleSize: ").Append(ExperimentSampleSize).Append("\n");
49+
sb.Append(" SampleSizes: ").Append(SampleSizes).Append("\n");
5850
sb.Append("}\n");
5951
return sb.ToString();
6052
}
@@ -82,8 +74,7 @@ public override bool Equals(object obj)
8274

8375
return
8476
(DurationDays == input.DurationDays || DurationDays.Equals(input.DurationDays)) &&
85-
(ControlSampleSize == input.ControlSampleSize || ControlSampleSize.Equals(input.ControlSampleSize)) &&
86-
(ExperimentSampleSize == input.ExperimentSampleSize || ExperimentSampleSize.Equals(input.ExperimentSampleSize));
77+
(SampleSizes == input.SampleSizes || SampleSizes != null && input.SampleSizes != null && SampleSizes.SequenceEqual(input.SampleSizes));
8778
}
8879

8980
/// <summary>
@@ -96,8 +87,10 @@ public override int GetHashCode()
9687
{
9788
int hashCode = 41;
9889
hashCode = (hashCode * 59) + DurationDays.GetHashCode();
99-
hashCode = (hashCode * 59) + ControlSampleSize.GetHashCode();
100-
hashCode = (hashCode * 59) + ExperimentSampleSize.GetHashCode();
90+
if (SampleSizes != null)
91+
{
92+
hashCode = (hashCode * 59) + SampleSizes.GetHashCode();
93+
}
10194
return hashCode;
10295
}
10396
}

0 commit comments

Comments
 (0)