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

com.hubspot.chrome.devtools.client.core.target.ReceivedMessageFromTargetEvent Maven / Gradle / Ivy

package com.hubspot.chrome.devtools.client.core.target;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hubspot.chrome.devtools.client.core.Event;

/**
 * Notifies about a new protocol message received from the session (as reported in
 * `attachedToTarget` event).
 */
public final class ReceivedMessageFromTargetEvent extends Event {
  private SessionID sessionId;

  private String message;

  private TargetID targetId;

  @JsonCreator
  public ReceivedMessageFromTargetEvent(@JsonProperty("sessionId") SessionID sessionId,
      @JsonProperty("message") String message, @JsonProperty("targetId") TargetID targetId) {
    this.sessionId = sessionId;
    this.message = message;
    this.targetId = targetId;
  }

  public SessionID getSessionId() {
    return sessionId;
  }

  public String getMessage() {
    return message;
  }

  public TargetID getTargetId() {
    return targetId;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy