com.testfabrik.webmate.javasdk.browsersession.BrowserSessionInfo Maven / Gradle / Ivy
The newest version!
package com.testfabrik.webmate.javasdk.browsersession;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.testfabrik.webmate.javasdk.devices.DeviceId;
import org.joda.time.DateTime;
import java.util.Optional;
@JsonIgnoreProperties(ignoreUnknown = true)
public class BrowserSessionInfo {
private BrowserSessionId id;
private Optional optStart;
private Optional optEnd;
private Optional optDeviceId;
public BrowserSessionInfo() {}
public BrowserSessionInfo(BrowserSessionId id, Optional optStart, Optional optEnd, Optional optDeviceId) {
this.id = id;
this.optStart = optStart;
this.optEnd = optEnd;
this.optDeviceId = optDeviceId;
}
public BrowserSessionId getId() {
return id;
}
public Optional getOptStart() {
return optStart;
}
public Optional getOptEnd() {
return optEnd;
}
public Optional getOptDeviceId() {
return optDeviceId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
BrowserSessionInfo that = (BrowserSessionInfo) o;
return id.equals(that.id);
}
@Override
public int hashCode() {
return id.hashCode();
}
}