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

com.symphony.bdk.bot.sdk.event.model.UserLeftRoomEvent Maven / Gradle / Ivy

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

import lombok.Data;
import lombok.NoArgsConstructor;
import model.events.UserLeftRoom;

/**
 * Symphony User left room event
 *
 * @author Marcus Secato
 */
@Data
@NoArgsConstructor
public class UserLeftRoomEvent extends BaseEvent {

  private StreamDetails stream;
  private UserDetails user;

  public UserLeftRoomEvent(UserLeftRoom event) {
    this.streamId = event.getStream().getStreamId();
    this.userId = event.getAffectedUser().getUserId();
    this.stream = new StreamDetails(event.getStream());
    this.user = new UserDetails(event.getAffectedUser());
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy