com.hubspot.chrome.devtools.client.core.tethering.AcceptedEvent Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.tethering;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hubspot.chrome.devtools.client.core.Event;
/**
* Informs that port was successfully bound and got a specified connection id.
*/
public final class AcceptedEvent extends Event {
private Integer port;
private String connectionId;
@JsonCreator
public AcceptedEvent(@JsonProperty("port") Integer port,
@JsonProperty("connectionId") String connectionId) {
this.port = port;
this.connectionId = connectionId;
}
public Integer getPort() {
return port;
}
public String getConnectionId() {
return connectionId;
}
}