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

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

import org.openqa.selenium.Beta;
import org.openqa.selenium.json.JsonInput;

/**
 * Protocol object for AudioListener
 */
public class AudioListener {

    private final org.openqa.selenium.devtools.v90.webaudio.model.GraphObjectId listenerId;

    private final org.openqa.selenium.devtools.v90.webaudio.model.GraphObjectId contextId;

    public AudioListener(org.openqa.selenium.devtools.v90.webaudio.model.GraphObjectId listenerId, org.openqa.selenium.devtools.v90.webaudio.model.GraphObjectId contextId) {
        this.listenerId = java.util.Objects.requireNonNull(listenerId, "listenerId is required");
        this.contextId = java.util.Objects.requireNonNull(contextId, "contextId is required");
    }

    public org.openqa.selenium.devtools.v90.webaudio.model.GraphObjectId getListenerId() {
        return listenerId;
    }

    public org.openqa.selenium.devtools.v90.webaudio.model.GraphObjectId getContextId() {
        return contextId;
    }

    private static AudioListener fromJson(JsonInput input) {
        org.openqa.selenium.devtools.v90.webaudio.model.GraphObjectId listenerId = null;
        org.openqa.selenium.devtools.v90.webaudio.model.GraphObjectId contextId = null;
        input.beginObject();
        while (input.hasNext()) {
            switch(input.nextName()) {
                case "listenerId":
                    listenerId = input.read(org.openqa.selenium.devtools.v90.webaudio.model.GraphObjectId.class);
                    break;
                case "contextId":
                    contextId = input.read(org.openqa.selenium.devtools.v90.webaudio.model.GraphObjectId.class);
                    break;
                default:
                    input.skipValue();
                    break;
            }
        }
        input.endObject();
        return new AudioListener(listenerId, contextId);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy