@@ -26,54 +26,33 @@ namespace OpenQA.Selenium
2626 /// </summary>
2727 public class DomMutationData
2828 {
29- private string targetId ;
30- private string attributeName ;
31- private string attributeValue ;
32- private string attributeOriginalValue ;
33-
3429 /// <summary>
3530 /// Gets the ID of the element whose value is changing.
3631 /// </summary>
3732 [ JsonPropertyName ( "target" ) ]
3833 [ JsonInclude ]
39- public string TargetId
40- {
41- get { return this . targetId ; }
42- internal set { this . targetId = value ; }
43- }
34+ public string TargetId { get ; internal set ; }
4435
4536 /// <summary>
4637 /// Gets the name of the attribute that is changing.
4738 /// </summary>
4839 [ JsonPropertyName ( "name" ) ]
4940 [ JsonInclude ]
50- public string AttributeName
51- {
52- get { return this . attributeName ; }
53- internal set { this . attributeName = value ; }
54- }
41+ public string AttributeName { get ; internal set ; }
5542
5643 /// <summary>
5744 /// Gets the value to which the attribute is being changed.
5845 /// </summary>
5946 [ JsonPropertyName ( "value" ) ]
6047 [ JsonInclude ]
61- public string AttributeValue
62- {
63- get { return this . attributeValue ; }
64- internal set { this . attributeValue = value ; }
65- }
48+ public string AttributeValue { get ; internal set ; }
6649
6750 /// <summary>
6851 /// Gets the value from which the attribute has been changed.
6952 /// </summary>
7053 [ JsonPropertyName ( "oldValue" ) ]
7154 [ JsonInclude ]
72- public string AttributeOriginalValue
73- {
74- get { return this . attributeOriginalValue ; }
75- internal set { this . attributeOriginalValue = value ; }
76- }
55+ public string AttributeOriginalValue { get ; internal set ; }
7756
7857 /// <summary>
7958 /// Stores the element associated with the target ID
@@ -86,7 +65,7 @@ public string AttributeOriginalValue
8665 /// <returns>A string that represents the current object.</returns>
8766 public override string ToString ( )
8867 {
89- return string . Format ( "target: {0}, name: {1}, value: {2}, originalValue: {3}" , this . targetId , this . attributeName , this . attributeValue , this . attributeOriginalValue ) ;
68+ return string . Format ( "target: {0}, name: {1}, value: {2}, originalValue: {3}" , this . TargetId , this . AttributeName , this . AttributeValue , this . AttributeOriginalValue ) ;
9069 }
9170 }
9271}
0 commit comments