Skip to content

Commit 9a3c38d

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@cac572f5.
1 parent 412b6e3 commit 9a3c38d

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
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", "{9860077F-8F31-4C0A-8AB3-2038D5917C08}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Segment.PublicApi", "src\Segment.PublicApi\Segment.PublicApi.csproj", "{1C1CB6C5-6109-4EC5-80A4-02FAB11AA719}"
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-
{9860077F-8F31-4C0A-8AB3-2038D5917C08}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14-
{9860077F-8F31-4C0A-8AB3-2038D5917C08}.Debug|Any CPU.Build.0 = Debug|Any CPU
15-
{9860077F-8F31-4C0A-8AB3-2038D5917C08}.Release|Any CPU.ActiveCfg = Release|Any CPU
16-
{9860077F-8F31-4C0A-8AB3-2038D5917C08}.Release|Any CPU.Build.0 = Release|Any CPU
13+
{1C1CB6C5-6109-4EC5-80A4-02FAB11AA719}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{1C1CB6C5-6109-4EC5-80A4-02FAB11AA719}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{1C1CB6C5-6109-4EC5-80A4-02FAB11AA719}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{1C1CB6C5-6109-4EC5-80A4-02FAB11AA719}.Release|Any CPU.Build.0 = Release|Any CPU
1717
EndGlobalSection
1818
GlobalSection(SolutionProperties) = preSolution
1919
HideSolutionNode = FALSE

src/Segment.PublicApi/Model/TraitOptions.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ public partial class TraitOptions : IEquatable<TraitOptions>, IValidatableObject
3737
/// </summary>
3838
/// <param name="includeHistoricalData">Determines whether data prior to the computed trait being created is included when determining the computed trait value. 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 the computed trait value..</param>
40-
public TraitOptions(bool includeHistoricalData = default(bool), bool includeAnonymousUsers = default(bool))
40+
/// <param name="backfillDurationDays">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>
41+
public TraitOptions(bool includeHistoricalData = default(bool), bool includeAnonymousUsers = default(bool), decimal backfillDurationDays = default(decimal))
4142
{
4243
this.IncludeHistoricalData = includeHistoricalData;
4344
this.IncludeAnonymousUsers = includeAnonymousUsers;
45+
this.BackfillDurationDays = backfillDurationDays;
4446
}
4547

4648
/// <summary>
@@ -57,6 +59,13 @@ public partial class TraitOptions : IEquatable<TraitOptions>, IValidatableObject
5759
[DataMember(Name = "includeAnonymousUsers", EmitDefaultValue = true)]
5860
public bool IncludeAnonymousUsers { get; set; }
5961

62+
/// <summary>
63+
/// 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.
64+
/// </summary>
65+
/// <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>
66+
[DataMember(Name = "backfillDurationDays", EmitDefaultValue = false)]
67+
public decimal BackfillDurationDays { get; set; }
68+
6069
/// <summary>
6170
/// Returns the string presentation of the object
6271
/// </summary>
@@ -67,6 +76,7 @@ public override string ToString()
6776
sb.Append("class TraitOptions {\n");
6877
sb.Append(" IncludeHistoricalData: ").Append(IncludeHistoricalData).Append("\n");
6978
sb.Append(" IncludeAnonymousUsers: ").Append(IncludeAnonymousUsers).Append("\n");
79+
sb.Append(" BackfillDurationDays: ").Append(BackfillDurationDays).Append("\n");
7080
sb.Append("}\n");
7181
return sb.ToString();
7282
}
@@ -109,6 +119,10 @@ public bool Equals(TraitOptions input)
109119
(
110120
this.IncludeAnonymousUsers == input.IncludeAnonymousUsers ||
111121
this.IncludeAnonymousUsers.Equals(input.IncludeAnonymousUsers)
122+
) &&
123+
(
124+
this.BackfillDurationDays == input.BackfillDurationDays ||
125+
this.BackfillDurationDays.Equals(input.BackfillDurationDays)
112126
);
113127
}
114128

@@ -123,6 +137,7 @@ public override int GetHashCode()
123137
int hashCode = 41;
124138
hashCode = (hashCode * 59) + this.IncludeHistoricalData.GetHashCode();
125139
hashCode = (hashCode * 59) + this.IncludeAnonymousUsers.GetHashCode();
140+
hashCode = (hashCode * 59) + this.BackfillDurationDays.GetHashCode();
126141
return hashCode;
127142
}
128143
}

0 commit comments

Comments
 (0)