All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openqa.selenium.devtools.v90.media.model.PlayerErrorsRaised Maven / Gradle / Ivy

Go to download

Selenium automates browsers. That's it! What you do with that power is entirely up to you.

There is a newer version: 4.0.0-beta-4
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy