@@ -17,19 +17,32 @@ public final class Device extends AbstractModel {
1717 private final Double confidence ;
1818 private final UUID id ;
1919 private final String lastSeen ;
20+ private final String localTime ;
21+
22+ // This method is for backwards compatibility. We should remove it when we
23+ // do a major release.
24+ public Device (
25+ Double confidence ,
26+ UUID id ,
27+ String lastSeen
28+ ) {
29+ this (confidence , id , lastSeen , null );
30+ }
2031
2132 public Device (
2233 @ JsonProperty ("confidence" ) Double confidence ,
2334 @ JsonProperty ("id" ) UUID id ,
24- @ JsonProperty ("last_seen" ) String lastSeen
35+ @ JsonProperty ("last_seen" ) String lastSeen ,
36+ @ JsonProperty ("local_time" ) String localTime
2537 ) {
2638 this .confidence = confidence ;
2739 this .id = id ;
2840 this .lastSeen = lastSeen ;
41+ this .localTime = localTime ;
2942 }
3043
3144 public Device () {
32- this (null , null , null );
45+ this (null , null , null , null );
3346 }
3447
3548 /**
@@ -59,4 +72,13 @@ public UUID getId() {
5972 public String getLastSeen () {
6073 return lastSeen ;
6174 }
75+
76+ /**
77+ * @return The date and time of the transaction at the UTC offset
78+ * associated with the device. This is an RFC 3339 date-time.
79+ */
80+ @ JsonProperty ("local_time" )
81+ public String getLocalTime () {
82+ return localTime ;
83+ }
6284}
0 commit comments