@@ -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 \"Audience Membership Changed\"..</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 \"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+
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