Skip to content

Commit 54f57da

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@39ef932c.
1 parent e7af98b commit 54f57da

2 files changed

Lines changed: 25 additions & 6 deletions

File tree

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", "{3A14CDF2-B168-418E-986D-82E09EF76A42}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Segment.PublicApi", "src\Segment.PublicApi\Segment.PublicApi.csproj", "{87DC32C5-B923-476E-8F23-35784C2E1BCA}"
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-
{3A14CDF2-B168-418E-986D-82E09EF76A42}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14-
{3A14CDF2-B168-418E-986D-82E09EF76A42}.Debug|Any CPU.Build.0 = Debug|Any CPU
15-
{3A14CDF2-B168-418E-986D-82E09EF76A42}.Release|Any CPU.ActiveCfg = Release|Any CPU
16-
{3A14CDF2-B168-418E-986D-82E09EF76A42}.Release|Any CPU.Build.0 = Release|Any CPU
13+
{87DC32C5-B923-476E-8F23-35784C2E1BCA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{87DC32C5-B923-476E-8F23-35784C2E1BCA}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{87DC32C5-B923-476E-8F23-35784C2E1BCA}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{87DC32C5-B923-476E-8F23-35784C2E1BCA}.Release|Any CPU.Build.0 = Release|Any CPU
1717
EndGlobalSection
1818
GlobalSection(SolutionProperties) = preSolution
1919
HideSolutionNode = FALSE

src/Segment.PublicApi/Model/IDSyncConfigurationInput.cs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ protected IDSyncConfigurationInput() { }
4242
/// </summary>
4343
/// <param name="externalId">The id type to sync. Examples: user_id, email, anonymous_id. (required).</param>
4444
/// <param name="strategy">The rule for selecting which identifiers to sync from a profile. Possible values: first: Syncs only the oldest recorded value. last: Syncs only the most recently updated value. all: Syncs every value found on the profile (sends multiple events). (required).</param>
45-
public IDSyncConfigurationInput(string externalId = default(string), string strategy = default(string))
45+
/// <param name="mapTo">Optional destination-specific identifier to map to (for example, \&quot;Email_Address_c\&quot;)..</param>
46+
public IDSyncConfigurationInput(string externalId = default(string), string strategy = default(string), string mapTo = default(string))
4647
{
4748
// to ensure "externalId" is required (not null)
4849
if (externalId == null)
@@ -56,6 +57,7 @@ protected IDSyncConfigurationInput() { }
5657
throw new ArgumentNullException("strategy is a required property for IDSyncConfigurationInput and cannot be null");
5758
}
5859
this.Strategy = strategy;
60+
this.MapTo = mapTo;
5961
}
6062

6163
/// <summary>
@@ -72,6 +74,13 @@ protected IDSyncConfigurationInput() { }
7274
[DataMember(Name = "strategy", IsRequired = true, EmitDefaultValue = true)]
7375
public string Strategy { get; set; }
7476

77+
/// <summary>
78+
/// Optional destination-specific identifier to map to (for example, \&quot;Email_Address_c\&quot;).
79+
/// </summary>
80+
/// <value>Optional destination-specific identifier to map to (for example, \&quot;Email_Address_c\&quot;).</value>
81+
[DataMember(Name = "mapTo", EmitDefaultValue = false)]
82+
public string MapTo { get; set; }
83+
7584
/// <summary>
7685
/// Returns the string presentation of the object
7786
/// </summary>
@@ -82,6 +91,7 @@ public override string ToString()
8291
sb.Append("class IDSyncConfigurationInput {\n");
8392
sb.Append(" ExternalId: ").Append(ExternalId).Append("\n");
8493
sb.Append(" Strategy: ").Append(Strategy).Append("\n");
94+
sb.Append(" MapTo: ").Append(MapTo).Append("\n");
8595
sb.Append("}\n");
8696
return sb.ToString();
8797
}
@@ -126,6 +136,11 @@ public bool Equals(IDSyncConfigurationInput input)
126136
this.Strategy == input.Strategy ||
127137
(this.Strategy != null &&
128138
this.Strategy.Equals(input.Strategy))
139+
) &&
140+
(
141+
this.MapTo == input.MapTo ||
142+
(this.MapTo != null &&
143+
this.MapTo.Equals(input.MapTo))
129144
);
130145
}
131146

@@ -146,6 +161,10 @@ public override int GetHashCode()
146161
{
147162
hashCode = (hashCode * 59) + this.Strategy.GetHashCode();
148163
}
164+
if (this.MapTo != null)
165+
{
166+
hashCode = (hashCode * 59) + this.MapTo.GetHashCode();
167+
}
149168
return hashCode;
150169
}
151170
}

0 commit comments

Comments
 (0)