org.openqa.selenium.devtools.v90.media.model.PlayerErrorsRaised Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of selenium-devtools-v90 Show documentation
Show all versions of selenium-devtools-v90 Show documentation
Selenium automates browsers. That's it! What you do with that power is entirely up to you.
package org.openqa.selenium.devtools.v90.media.model;
import org.openqa.selenium.Beta;
import org.openqa.selenium.json.JsonInput;
/**
* Send a list of any errors that need to be delivered.
*/
public class PlayerErrorsRaised {
private final org.openqa.selenium.devtools.v90.media.model.PlayerId playerId;
private final java.util.List errors;
public PlayerErrorsRaised(org.openqa.selenium.devtools.v90.media.model.PlayerId playerId, java.util.List errors) {
this.playerId = java.util.Objects.requireNonNull(playerId, "playerId is required");
this.errors = java.util.Objects.requireNonNull(errors, "errors is required");
}
public org.openqa.selenium.devtools.v90.media.model.PlayerId getPlayerId() {
return playerId;
}
public java.util.List getErrors() {
return errors;
}
private static PlayerErrorsRaised fromJson(JsonInput input) {
org.openqa.selenium.devtools.v90.media.model.PlayerId playerId = null;
java.util.List errors = null;
input.beginObject();
while (input.hasNext()) {
switch(input.nextName()) {
case "playerId":
playerId = input.read(org.openqa.selenium.devtools.v90.media.model.PlayerId.class);
break;
case "errors":
errors = input.read(new com.google.common.reflect.TypeToken>() {
}.getType());
break;
default:
input.skipValue();
break;
}
}
input.endObject();
return new PlayerErrorsRaised(playerId, errors);
}
}