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

com.symphony.bdk.bot.sdk.sse.model.SubscriptionEvent Maven / Gradle / Ivy

package com.symphony.bdk.bot.sdk.sse.model;

import lombok.Getter;

import java.util.List;
import java.util.Map;

import com.symphony.bdk.bot.sdk.sse.SseSubscriber;

/**
 * SSE subscription event
 */
@Getter
public class SubscriptionEvent {

  private List eventTypes;
  private Map metadata;
  private String lastEventId;
  private Long userId;

  public SubscriptionEvent(SseSubscriber subscriber) {
    this.eventTypes = subscriber.getEventTypes();
    this.metadata = subscriber.getMetadata();
    this.lastEventId = subscriber.getLastEventId();
    this.userId = subscriber.getUserId();
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy