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

it.contactlab.hub.sdk.java.models.Event Maven / Gradle / Ivy

There is a newer version: 1.8.0
Show newest version
package it.contactlab.hub.sdk.java.models;

import java.time.OffsetDateTime;
import java.util.Map;
import java.util.Optional;

/**
 * An Event. Abstract class that is extended by Event subclasses.
 */
public abstract class Event {

  /**
   * The ID of this Event.
   */
  public abstract Optional id();

  /**
   * The CustomerId for this Event.
   */
  public abstract Optional customerId();

  /**
   * The ExternalId for this Event.
   */
  public abstract Optional externalId();

  /**
   * The SessionId for this Event.
   */
  public abstract Optional sessionId();

  /**
   * The event type of this Event.
   */
  public abstract EventType type();

  /**
   * The event context of this Event.
   */
  public abstract EventContext context();

  /**
   * The properties of this Event.
   */
  public abstract Map properties();

  /**
   * The context-specific properties of this Event.
   */
  public abstract Optional contextInfo();

  /**
   * The moment when this Event happened.
   *
   */
  public abstract OffsetDateTime date();

  /**
   * The moment when this Event was registered.
   */
  public abstract Optional registeredAt();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy