Skip to content

Commit 93042b4

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@8f4f1166.
1 parent 0ec7ba2 commit 93042b4

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", "{B1FDD1E8-36AB-478A-8B19-85E9FDB85060}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Segment.PublicApi", "src\Segment.PublicApi\Segment.PublicApi.csproj", "{70BA2B8B-D5AA-40CE-9B9A-972F72E8DB10}"
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-
{B1FDD1E8-36AB-478A-8B19-85E9FDB85060}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14-
{B1FDD1E8-36AB-478A-8B19-85E9FDB85060}.Debug|Any CPU.Build.0 = Debug|Any CPU
15-
{B1FDD1E8-36AB-478A-8B19-85E9FDB85060}.Release|Any CPU.ActiveCfg = Release|Any CPU
16-
{B1FDD1E8-36AB-478A-8B19-85E9FDB85060}.Release|Any CPU.Build.0 = Release|Any CPU
13+
{70BA2B8B-D5AA-40CE-9B9A-972F72E8DB10}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{70BA2B8B-D5AA-40CE-9B9A-972F72E8DB10}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{70BA2B8B-D5AA-40CE-9B9A-972F72E8DB10}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{70BA2B8B-D5AA-40CE-9B9A-972F72E8DB10}.Release|Any CPU.Build.0 = Release|Any CPU
1717
EndGlobalSection
1818
GlobalSection(SolutionProperties) = preSolution
1919
HideSolutionNode = FALSE

src/Segment.PublicApi/Model/PersonalizationInput.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ protected PersonalizationInput() { }
4242
/// </summary>
4343
/// <param name="profile">profile (required).</param>
4444
/// <param name="entities">Entities V2 Object..</param>
45-
public PersonalizationInput(Profile profile = default(Profile), List<PersonalizationInputEntity> entities = default(List<PersonalizationInputEntity>))
45+
/// <param name="syncEntityPropertyChanges">Sync entity property changes back to Segment. Only applicable if activationType is \&quot;Audience Membership Changed\&quot;..</param>
46+
public PersonalizationInput(Profile profile = default(Profile), List<PersonalizationInputEntity> entities = default(List<PersonalizationInputEntity>), bool syncEntityPropertyChanges = default(bool))
4647
{
4748
// to ensure "profile" is required (not null)
4849
if (profile == null)
@@ -51,6 +52,7 @@ protected PersonalizationInput() { }
5152
}
5253
this.Profile = profile;
5354
this.Entities = entities;
55+
this.SyncEntityPropertyChanges = syncEntityPropertyChanges;
5456
}
5557

5658
/// <summary>
@@ -66,6 +68,13 @@ protected PersonalizationInput() { }
6668
[DataMember(Name = "entities", EmitDefaultValue = false)]
6769
public List<PersonalizationInputEntity> Entities { get; set; }
6870

71+
/// <summary>
72+
/// Sync entity property changes back to Segment. Only applicable if activationType is \&quot;Audience Membership Changed\&quot;.
73+
/// </summary>
74+
/// <value>Sync entity property changes back to Segment. Only applicable if activationType is \&quot;Audience Membership Changed\&quot;.</value>
75+
[DataMember(Name = "syncEntityPropertyChanges", EmitDefaultValue = true)]
76+
public bool SyncEntityPropertyChanges { get; set; }
77+
6978
/// <summary>
7079
/// Returns the string presentation of the object
7180
/// </summary>
@@ -76,6 +85,7 @@ public override string ToString()
7685
sb.Append("class PersonalizationInput {\n");
7786
sb.Append(" Profile: ").Append(Profile).Append("\n");
7887
sb.Append(" Entities: ").Append(Entities).Append("\n");
88+
sb.Append(" SyncEntityPropertyChanges: ").Append(SyncEntityPropertyChanges).Append("\n");
7989
sb.Append("}\n");
8090
return sb.ToString();
8191
}
@@ -121,6 +131,10 @@ public bool Equals(PersonalizationInput input)
121131
this.Entities != null &&
122132
input.Entities != null &&
123133
this.Entities.SequenceEqual(input.Entities)
134+
) &&
135+
(
136+
this.SyncEntityPropertyChanges == input.SyncEntityPropertyChanges ||
137+
this.SyncEntityPropertyChanges.Equals(input.SyncEntityPropertyChanges)
124138
);
125139
}
126140

@@ -141,6 +155,7 @@ public override int GetHashCode()
141155
{
142156
hashCode = (hashCode * 59) + this.Entities.GetHashCode();
143157
}
158+
hashCode = (hashCode * 59) + this.SyncEntityPropertyChanges.GetHashCode();
144159
return hashCode;
145160
}
146161
}

0 commit comments

Comments
 (0)