001package usecase.auth; 002 003import lombok.*; 004 005import javax.enterprise.inject.Alternative; 006import java.time.Instant; 007 008/** 009 * Classe DTO relativa all'utente. 010 */ 011@Builder 012@NoArgsConstructor 013@AllArgsConstructor 014@Getter 015@Alternative 016@ToString 017public class CurrentUser { 018 private int id; 019 private String username; 020 private boolean isAdmin; 021 private Instant banDuration; 022 private String picture; 023 @Builder.Default 024 private boolean isLoggedIn = false; 025}