Skip to content

Commit 98dcbba

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@8031567d.
1 parent 6679ed9 commit 98dcbba

File tree

5 files changed

+108
-32
lines changed

5 files changed

+108
-32
lines changed

Segment.PublicApi.sln

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
# Visual Studio 2012
33
VisualStudioVersion = 12.0.0.0
44
MinimumVisualStudioVersion = 10.0.0.1
5-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Segment.PublicApi", "src\Segment.PublicApi\Segment.PublicApi.csproj", "{A8AF1E28-8C71-4985-A04C-C68845E8A0B3}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Segment.PublicApi", "src\Segment.PublicApi\Segment.PublicApi.csproj", "{46A0D353-9CDA-47AB-851C-B4C5B2AD94E6}"
66
EndProject
77
Global
88
GlobalSection(SolutionConfigurationPlatforms) = preSolution
99
Debug|Any CPU = Debug|Any CPU
1010
Release|Any CPU = Release|Any CPU
1111
EndGlobalSection
1212
GlobalSection(ProjectConfigurationPlatforms) = postSolution
13-
{A8AF1E28-8C71-4985-A04C-C68845E8A0B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14-
{A8AF1E28-8C71-4985-A04C-C68845E8A0B3}.Debug|Any CPU.Build.0 = Debug|Any CPU
15-
{A8AF1E28-8C71-4985-A04C-C68845E8A0B3}.Release|Any CPU.ActiveCfg = Release|Any CPU
16-
{A8AF1E28-8C71-4985-A04C-C68845E8A0B3}.Release|Any CPU.Build.0 = Release|Any CPU
13+
{46A0D353-9CDA-47AB-851C-B4C5B2AD94E6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{46A0D353-9CDA-47AB-851C-B4C5B2AD94E6}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{46A0D353-9CDA-47AB-851C-B4C5B2AD94E6}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{46A0D353-9CDA-47AB-851C-B4C5B2AD94E6}.Release|Any CPU.Build.0 = Release|Any CPU
1717
EndGlobalSection
1818
GlobalSection(SolutionProperties) = preSolution
1919
HideSolutionNode = FALSE

src/Segment.PublicApi/Model/AudienceOptions.cs

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,14 @@ public partial class AudienceOptions : IEquatable<AudienceOptions>, IValidatable
3737
/// </summary>
3838
/// <param name="includeHistoricalData">Determines whether data prior to the audience being created is included when determining audience membership. Note that including historical data may be needed in order to properly handle the definition specified. In these cases, Segment will automatically handle including historical data and the response will return the includeHistoricalData parameter as true..</param>
3939
/// <param name="includeAnonymousUsers">Determines whether anonymous users should be included when determining audience membership..</param>
40-
public AudienceOptions(bool includeHistoricalData = default(bool), bool includeAnonymousUsers = default(bool))
40+
/// <param name="filterByExternalIds">The set of profile external identifiers being used to determine audience membership. Profiles will only be considered for audience membership if the profile has at least one external id whose key matches a value in this set..</param>
41+
/// <param name="backfillEventDataDays">If specified, the value of this field indicates the number of days, specified from the date the audience was created, that event data will be included from when determining audience membership. If unspecified, defer to the value of &#x60;includeHistoricalData&#x60; to determine whether historical data is either entirely included or entirely excluded when determining audience membership..</param>
42+
public AudienceOptions(bool includeHistoricalData = default(bool), bool includeAnonymousUsers = default(bool), List<string> filterByExternalIds = default(List<string>), decimal backfillEventDataDays = default(decimal))
4143
{
4244
this.IncludeHistoricalData = includeHistoricalData;
4345
this.IncludeAnonymousUsers = includeAnonymousUsers;
46+
this.FilterByExternalIds = filterByExternalIds;
47+
this.BackfillEventDataDays = backfillEventDataDays;
4448
}
4549

4650
/// <summary>
@@ -57,6 +61,20 @@ public partial class AudienceOptions : IEquatable<AudienceOptions>, IValidatable
5761
[DataMember(Name = "includeAnonymousUsers", EmitDefaultValue = true)]
5862
public bool IncludeAnonymousUsers { get; set; }
5963

64+
/// <summary>
65+
/// The set of profile external identifiers being used to determine audience membership. Profiles will only be considered for audience membership if the profile has at least one external id whose key matches a value in this set.
66+
/// </summary>
67+
/// <value>The set of profile external identifiers being used to determine audience membership. Profiles will only be considered for audience membership if the profile has at least one external id whose key matches a value in this set.</value>
68+
[DataMember(Name = "filterByExternalIds", EmitDefaultValue = false)]
69+
public List<string> FilterByExternalIds { get; set; }
70+
71+
/// <summary>
72+
/// If specified, the value of this field indicates the number of days, specified from the date the audience was created, that event data will be included from when determining audience membership. If unspecified, defer to the value of &#x60;includeHistoricalData&#x60; to determine whether historical data is either entirely included or entirely excluded when determining audience membership.
73+
/// </summary>
74+
/// <value>If specified, the value of this field indicates the number of days, specified from the date the audience was created, that event data will be included from when determining audience membership. If unspecified, defer to the value of &#x60;includeHistoricalData&#x60; to determine whether historical data is either entirely included or entirely excluded when determining audience membership.</value>
75+
[DataMember(Name = "backfillEventDataDays", EmitDefaultValue = false)]
76+
public decimal BackfillEventDataDays { get; set; }
77+
6078
/// <summary>
6179
/// Returns the string presentation of the object
6280
/// </summary>
@@ -67,6 +85,8 @@ public override string ToString()
6785
sb.Append("class AudienceOptions {\n");
6886
sb.Append(" IncludeHistoricalData: ").Append(IncludeHistoricalData).Append("\n");
6987
sb.Append(" IncludeAnonymousUsers: ").Append(IncludeAnonymousUsers).Append("\n");
88+
sb.Append(" FilterByExternalIds: ").Append(FilterByExternalIds).Append("\n");
89+
sb.Append(" BackfillEventDataDays: ").Append(BackfillEventDataDays).Append("\n");
7090
sb.Append("}\n");
7191
return sb.ToString();
7292
}
@@ -109,6 +129,16 @@ public bool Equals(AudienceOptions input)
109129
(
110130
this.IncludeAnonymousUsers == input.IncludeAnonymousUsers ||
111131
this.IncludeAnonymousUsers.Equals(input.IncludeAnonymousUsers)
132+
) &&
133+
(
134+
this.FilterByExternalIds == input.FilterByExternalIds ||
135+
this.FilterByExternalIds != null &&
136+
input.FilterByExternalIds != null &&
137+
this.FilterByExternalIds.SequenceEqual(input.FilterByExternalIds)
138+
) &&
139+
(
140+
this.BackfillEventDataDays == input.BackfillEventDataDays ||
141+
this.BackfillEventDataDays.Equals(input.BackfillEventDataDays)
112142
);
113143
}
114144

@@ -123,6 +153,11 @@ public override int GetHashCode()
123153
int hashCode = 41;
124154
hashCode = (hashCode * 59) + this.IncludeHistoricalData.GetHashCode();
125155
hashCode = (hashCode * 59) + this.IncludeAnonymousUsers.GetHashCode();
156+
if (this.FilterByExternalIds != null)
157+
{
158+
hashCode = (hashCode * 59) + this.FilterByExternalIds.GetHashCode();
159+
}
160+
hashCode = (hashCode * 59) + this.BackfillEventDataDays.GetHashCode();
126161
return hashCode;
127162
}
128163
}

src/Segment.PublicApi/Model/AudienceOptionsWithLookback.cs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,20 @@ protected AudienceOptionsWithLookback() { }
4141
/// Initializes a new instance of the <see cref="AudienceOptionsWithLookback" /> class.
4242
/// </summary>
4343
/// <param name="filterByExternalIds">The set of profile external identifiers being used to determine audience membership. Profiles will only be considered for audience membership if the profile has at least one external id whose key matches a value in this set. (required).</param>
44-
/// <param name="backfillEventDataDays">If specified, the value of this field indicates the number of days, specified from the date the audience was created, that event data will be included from when determining audience membership. If unspecified, defer to the value of &#x60;includeHistoricalData&#x60; to determine whether historical data is either entirely included or entirely excluded when determining audience membership..</param>
4544
/// <param name="includeHistoricalData">Determines whether data prior to the audience being created is included when determining audience membership. Note that including historical data may be needed in order to properly handle the definition specified. In these cases, Segment will automatically handle including historical data and the response will return the includeHistoricalData parameter as true..</param>
4645
/// <param name="includeAnonymousUsers">Determines whether anonymous users should be included when determining audience membership..</param>
47-
public AudienceOptionsWithLookback(List<string> filterByExternalIds = default(List<string>), decimal backfillEventDataDays = default(decimal), bool includeHistoricalData = default(bool), bool includeAnonymousUsers = default(bool))
46+
/// <param name="backfillEventDataDays">If specified, the value of this field indicates the number of days, specified from the date the audience was created, that event data will be included from when determining audience membership. If unspecified, defer to the value of &#x60;includeHistoricalData&#x60; to determine whether historical data is either entirely included or entirely excluded when determining audience membership..</param>
47+
public AudienceOptionsWithLookback(List<string> filterByExternalIds = default(List<string>), bool includeHistoricalData = default(bool), bool includeAnonymousUsers = default(bool), decimal backfillEventDataDays = default(decimal))
4848
{
4949
// to ensure "filterByExternalIds" is required (not null)
5050
if (filterByExternalIds == null)
5151
{
5252
throw new ArgumentNullException("filterByExternalIds is a required property for AudienceOptionsWithLookback and cannot be null");
5353
}
5454
this.FilterByExternalIds = filterByExternalIds;
55-
this.BackfillEventDataDays = backfillEventDataDays;
5655
this.IncludeHistoricalData = includeHistoricalData;
5756
this.IncludeAnonymousUsers = includeAnonymousUsers;
57+
this.BackfillEventDataDays = backfillEventDataDays;
5858
}
5959

6060
/// <summary>
@@ -64,13 +64,6 @@ protected AudienceOptionsWithLookback() { }
6464
[DataMember(Name = "filterByExternalIds", IsRequired = true, EmitDefaultValue = true)]
6565
public List<string> FilterByExternalIds { get; set; }
6666

67-
/// <summary>
68-
/// If specified, the value of this field indicates the number of days, specified from the date the audience was created, that event data will be included from when determining audience membership. If unspecified, defer to the value of &#x60;includeHistoricalData&#x60; to determine whether historical data is either entirely included or entirely excluded when determining audience membership.
69-
/// </summary>
70-
/// <value>If specified, the value of this field indicates the number of days, specified from the date the audience was created, that event data will be included from when determining audience membership. If unspecified, defer to the value of &#x60;includeHistoricalData&#x60; to determine whether historical data is either entirely included or entirely excluded when determining audience membership.</value>
71-
[DataMember(Name = "backfillEventDataDays", EmitDefaultValue = false)]
72-
public decimal BackfillEventDataDays { get; set; }
73-
7467
/// <summary>
7568
/// Determines whether data prior to the audience being created is included when determining audience membership. Note that including historical data may be needed in order to properly handle the definition specified. In these cases, Segment will automatically handle including historical data and the response will return the includeHistoricalData parameter as true.
7669
/// </summary>
@@ -85,6 +78,13 @@ protected AudienceOptionsWithLookback() { }
8578
[DataMember(Name = "includeAnonymousUsers", EmitDefaultValue = true)]
8679
public bool IncludeAnonymousUsers { get; set; }
8780

81+
/// <summary>
82+
/// If specified, the value of this field indicates the number of days, specified from the date the audience was created, that event data will be included from when determining audience membership. If unspecified, defer to the value of &#x60;includeHistoricalData&#x60; to determine whether historical data is either entirely included or entirely excluded when determining audience membership.
83+
/// </summary>
84+
/// <value>If specified, the value of this field indicates the number of days, specified from the date the audience was created, that event data will be included from when determining audience membership. If unspecified, defer to the value of &#x60;includeHistoricalData&#x60; to determine whether historical data is either entirely included or entirely excluded when determining audience membership.</value>
85+
[DataMember(Name = "backfillEventDataDays", EmitDefaultValue = false)]
86+
public decimal BackfillEventDataDays { get; set; }
87+
8888
/// <summary>
8989
/// Returns the string presentation of the object
9090
/// </summary>
@@ -94,9 +94,9 @@ public override string ToString()
9494
StringBuilder sb = new StringBuilder();
9595
sb.Append("class AudienceOptionsWithLookback {\n");
9696
sb.Append(" FilterByExternalIds: ").Append(FilterByExternalIds).Append("\n");
97-
sb.Append(" BackfillEventDataDays: ").Append(BackfillEventDataDays).Append("\n");
9897
sb.Append(" IncludeHistoricalData: ").Append(IncludeHistoricalData).Append("\n");
9998
sb.Append(" IncludeAnonymousUsers: ").Append(IncludeAnonymousUsers).Append("\n");
99+
sb.Append(" BackfillEventDataDays: ").Append(BackfillEventDataDays).Append("\n");
100100
sb.Append("}\n");
101101
return sb.ToString();
102102
}
@@ -138,17 +138,17 @@ public bool Equals(AudienceOptionsWithLookback input)
138138
input.FilterByExternalIds != null &&
139139
this.FilterByExternalIds.SequenceEqual(input.FilterByExternalIds)
140140
) &&
141-
(
142-
this.BackfillEventDataDays == input.BackfillEventDataDays ||
143-
this.BackfillEventDataDays.Equals(input.BackfillEventDataDays)
144-
) &&
145141
(
146142
this.IncludeHistoricalData == input.IncludeHistoricalData ||
147143
this.IncludeHistoricalData.Equals(input.IncludeHistoricalData)
148144
) &&
149145
(
150146
this.IncludeAnonymousUsers == input.IncludeAnonymousUsers ||
151147
this.IncludeAnonymousUsers.Equals(input.IncludeAnonymousUsers)
148+
) &&
149+
(
150+
this.BackfillEventDataDays == input.BackfillEventDataDays ||
151+
this.BackfillEventDataDays.Equals(input.BackfillEventDataDays)
152152
);
153153
}
154154

@@ -165,9 +165,9 @@ public override int GetHashCode()
165165
{
166166
hashCode = (hashCode * 59) + this.FilterByExternalIds.GetHashCode();
167167
}
168-
hashCode = (hashCode * 59) + this.BackfillEventDataDays.GetHashCode();
169168
hashCode = (hashCode * 59) + this.IncludeHistoricalData.GetHashCode();
170169
hashCode = (hashCode * 59) + this.IncludeAnonymousUsers.GetHashCode();
170+
hashCode = (hashCode * 59) + this.BackfillEventDataDays.GetHashCode();
171171
return hashCode;
172172
}
173173
}

0 commit comments

Comments
 (0)