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

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

/**
 * Notifies that an existing AudioParam has been destroyed.
 */
public class AudioParamWillBeDestroyed {

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

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

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

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy