com.hubspot.chrome.devtools.client.core.page.JavascriptDialogClosedEvent Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.page;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hubspot.chrome.devtools.client.core.Event;
/**
* Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been
* closed.
*/
public final class JavascriptDialogClosedEvent extends Event {
private Boolean result;
private String userInput;
@JsonCreator
public JavascriptDialogClosedEvent(@JsonProperty("result") Boolean result,
@JsonProperty("userInput") String userInput) {
this.result = result;
this.userInput = userInput;
}
public Boolean getResult() {
return result;
}
public String getUserInput() {
return userInput;
}
}