@@ -42,7 +42,8 @@ protected PersonalizationInput() { }
42
42
/// </summary>
43
43
/// <param name="profile">profile (required).</param>
44
44
/// <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 \"Audience Membership Changed\"..</param>
46
+ public PersonalizationInput ( Profile profile = default ( Profile ) , List < PersonalizationInputEntity > entities = default ( List < PersonalizationInputEntity > ) , bool syncEntityPropertyChanges = default ( bool ) )
46
47
{
47
48
// to ensure "profile" is required (not null)
48
49
if ( profile == null )
@@ -51,6 +52,7 @@ protected PersonalizationInput() { }
51
52
}
52
53
this . Profile = profile ;
53
54
this . Entities = entities ;
55
+ this . SyncEntityPropertyChanges = syncEntityPropertyChanges ;
54
56
}
55
57
56
58
/// <summary>
@@ -66,6 +68,13 @@ protected PersonalizationInput() { }
66
68
[ DataMember ( Name = "entities" , EmitDefaultValue = false ) ]
67
69
public List < PersonalizationInputEntity > Entities { get ; set ; }
68
70
71
+ /// <summary>
72
+ /// Sync entity property changes back to Segment. Only applicable if activationType is \"Audience Membership Changed\".
73
+ /// </summary>
74
+ /// <value>Sync entity property changes back to Segment. Only applicable if activationType is \"Audience Membership Changed\".</value>
75
+ [ DataMember ( Name = "syncEntityPropertyChanges" , EmitDefaultValue = true ) ]
76
+ public bool SyncEntityPropertyChanges { get ; set ; }
77
+
69
78
/// <summary>
70
79
/// Returns the string presentation of the object
71
80
/// </summary>
@@ -76,6 +85,7 @@ public override string ToString()
76
85
sb . Append ( "class PersonalizationInput {\n " ) ;
77
86
sb . Append ( " Profile: " ) . Append ( Profile ) . Append ( "\n " ) ;
78
87
sb . Append ( " Entities: " ) . Append ( Entities ) . Append ( "\n " ) ;
88
+ sb . Append ( " SyncEntityPropertyChanges: " ) . Append ( SyncEntityPropertyChanges ) . Append ( "\n " ) ;
79
89
sb . Append ( "}\n " ) ;
80
90
return sb . ToString ( ) ;
81
91
}
@@ -121,6 +131,10 @@ public bool Equals(PersonalizationInput input)
121
131
this . Entities != null &&
122
132
input . Entities != null &&
123
133
this . Entities . SequenceEqual ( input . Entities )
134
+ ) &&
135
+ (
136
+ this . SyncEntityPropertyChanges == input . SyncEntityPropertyChanges ||
137
+ this . SyncEntityPropertyChanges . Equals ( input . SyncEntityPropertyChanges )
124
138
) ;
125
139
}
126
140
@@ -141,6 +155,7 @@ public override int GetHashCode()
141
155
{
142
156
hashCode = ( hashCode * 59 ) + this . Entities . GetHashCode ( ) ;
143
157
}
158
+ hashCode = ( hashCode * 59 ) + this . SyncEntityPropertyChanges . GetHashCode ( ) ;
144
159
return hashCode ;
145
160
}
146
161
}
0 commit comments