
com.lob.model.TrackingEvent Maven / Gradle / Ivy
package com.lob.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.joda.time.DateTime;
public class TrackingEvent {
@JsonProperty private final String id;
@JsonProperty private final String name;
@JsonProperty private final String location;
@JsonProperty private final DateTime time;
@JsonProperty private final DateTime dateCreated;
@JsonProperty private final DateTime dateModified;
@JsonProperty private final String object;
@JsonCreator
public TrackingEvent(
@JsonProperty("id") final String id,
@JsonProperty("name") final String name,
@JsonProperty("location") final String location,
@JsonProperty("time") final DateTime time,
@JsonProperty("date_created") final DateTime dateCreated,
@JsonProperty("date_modified") final DateTime dateModified,
@JsonProperty("object") final String object) {
this.id = id;
this.name = name;
this.location = location;
this.time = time;
this.dateCreated = dateCreated;
this.dateModified = dateModified;
this.object = object;
}
public String getId() {
return id;
}
public String getName() {
return name;
}
public String getLocation() {
return location;
}
public DateTime getTime() {
return time;
}
public DateTime getDateCreated() {
return dateCreated;
}
public DateTime getDateModified() {
return dateModified;
}
public String getObject() {
return object;
}
@Override
public String toString() {
return "TrackingEvent{" +
"id=" + id +
", name='" + name + '\'' +
", location='" + location + '\'' +
", time=" + time +
", dateCreated=" + dateCreated +
", dateModified=" + dateModified +
", object=" + object +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy