@@ -38,8 +38,8 @@ Optionally add any user defined properties using `Property` class:
38
38
``` java
39
39
Property customerName = new Property (" Name" , " John Smith" );
40
40
Property customerAge = new Property (" Age" , 26 , ValueType . VALUE_TYPE_AGE_YEAR );
41
- Property customerAge = new Property (" Temp" , 98.6 , ValueType . VALUE_TYPE_TEMP_F );
42
- event. addProperty(customerName, customerAge);
41
+ Property customerTemp = new Property (" Temp" , 98.6 , ValueType . VALUE_TYPE_TEMP_F );
42
+ event. addProperty(customerName, customerAge, customerTemp );
43
43
```
44
44
Finally, invoke the post method on the ` JKStream ` object, passing it the event you wish to stream:
45
45
``` java
@@ -53,9 +53,9 @@ Finally, invoke the post method on the `JKStream` object, passing it the event y
53
53
// create custom properties
54
54
Property customerName = new Property (" Name" , " John Smith" );
55
55
Property customerAge = new Property (" Age" , 26 , ValueType . VALUE_TYPE_AGE_YEAR );
56
- Property customerAge = new Property (" Temp" , 98.6 , ValueType . VALUE_TYPE_TEMP_F );
56
+ Property customerTemp = new Property (" Temp" , 98.6 , ValueType . VALUE_TYPE_TEMP_F );
57
57
58
- event. addProperty(customerName, customerAge);
58
+ event. addProperty(customerName, customerAge, customerTemp );
59
59
Response response = jkSend. post(event);
60
60
response. close();
61
61
```
0 commit comments