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

fi.foyt.fni.rest.illusion.model.IllusionEventParticipant Maven / Gradle / Ivy

There is a newer version: 3.3.13
Show newest version
package fi.foyt.fni.rest.illusion.model;

import fi.foyt.fni.persistence.model.illusion.IllusionEventParticipantRole;

public class IllusionEventParticipant {
  
  public IllusionEventParticipant() {
    super();
  }
  
  public IllusionEventParticipant(Long id, Long userId, IllusionEventParticipantRole role, String displayName) {
    this();
    this.id = id;
    this.userId = userId;
    this.role = role;
    this.displayName = displayName;
  }

  public IllusionEventParticipant(Long id, Long userId, IllusionEventParticipantRole role) {
    this(id, userId, role, null);
  }

  /**
   * Returns event participant id
   * 
   * @return event participant id
   */
  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  /**
   * Returns event participant role
   * 
   * @return event participant role
   */
  public IllusionEventParticipantRole getRole() {
    return role;
  }

  public void setRole(IllusionEventParticipantRole role) {
    this.role = role;
  }

  /**
   * Returns event participant' user id
   * 
   * @return event participant' user id
   */
  public Long getUserId() {
    return userId;
  }

  public void setUserId(Long userId) {
    this.userId = userId;
  }
  
  /**
   * Returns participant's display name. Defaults to users nickname / full name if nulled when creating a participant
   * 
   * @return participant's display name. Defaults to users nickname / full name if nulled when creating a participant
   */
  public String getDisplayName() {
    return displayName;
  }
  
  public void setDisplayName(String displayName) {
    this.displayName = displayName;
  }

  private Long id;
  private Long userId;
  private IllusionEventParticipantRole role;
  private String displayName;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy