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

com.hubspot.chrome.devtools.client.core.network.EventSourceMessageReceivedEvent Maven / Gradle / Ivy

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

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

/**
 * Fired when EventSource message is received.
 */
public final class EventSourceMessageReceivedEvent extends Event {
  private RequestId requestId;

  private MonotonicTime timestamp;

  private String eventName;

  private String eventId;

  private String data;

  @JsonCreator
  public EventSourceMessageReceivedEvent(@JsonProperty("requestId") RequestId requestId,
      @JsonProperty("timestamp") MonotonicTime timestamp,
      @JsonProperty("eventName") String eventName, @JsonProperty("eventId") String eventId,
      @JsonProperty("data") String data) {
    this.requestId = requestId;
    this.timestamp = timestamp;
    this.eventName = eventName;
    this.eventId = eventId;
    this.data = data;
  }

  public RequestId getRequestId() {
    return requestId;
  }

  public MonotonicTime getTimestamp() {
    return timestamp;
  }

  public String getEventName() {
    return eventName;
  }

  public String getEventId() {
    return eventId;
  }

  public String getData() {
    return data;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy