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

org.openqa.selenium.devtools.v90.media.model.PlayerPropertiesChanged 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;

/**
 * This can be called multiple times, and can be used to set / override /
 * remove player properties. A null propValue indicates removal.
 */
public class PlayerPropertiesChanged {

    private final org.openqa.selenium.devtools.v90.media.model.PlayerId playerId;

    private final java.util.List properties;

    public PlayerPropertiesChanged(org.openqa.selenium.devtools.v90.media.model.PlayerId playerId, java.util.List properties) {
        this.playerId = java.util.Objects.requireNonNull(playerId, "playerId is required");
        this.properties = java.util.Objects.requireNonNull(properties, "properties is required");
    }

    public org.openqa.selenium.devtools.v90.media.model.PlayerId getPlayerId() {
        return playerId;
    }

    public java.util.List getProperties() {
        return properties;
    }

    private static PlayerPropertiesChanged fromJson(JsonInput input) {
        org.openqa.selenium.devtools.v90.media.model.PlayerId playerId = null;
        java.util.List properties = 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 "properties":
                    properties = input.read(new com.google.common.reflect.TypeToken>() {
                    }.getType());
                    break;
                default:
                    input.skipValue();
                    break;
            }
        }
        input.endObject();
        return new PlayerPropertiesChanged(playerId, properties);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy